Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Sep 2, 2024
1 parent 476ba04 commit 10b6204
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/Permit2Proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function getPermit2MsgHash(
) external view returns (bytes32 msgHash)
```

Permit2 nonces are non-sequential and are a bit complicated to work with the
Permit2 nonces are non-sequential and are a bit complicated to work with. The
following utility methods allow you to fetch the next valid nonce or sequence
of nonces for use when generating Permit2 signatures.

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
- [FeeCollector](./FeeCollector.md)
- [Receiver](./Receiver.md)
- [RelayerCelerIM](./RelayerCelerIM.md)
- [Permi2Proxy](./Permit2Proxy.md)
- [Permit2Proxy](./Permit2Proxy.md)
4 changes: 2 additions & 2 deletions script/demoScripts/demoPermit2Proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ const main = defineCommand({
args: [account.address],
})

// Get lastest block
// Get latest block
const block = await client.getBlock()

// Consturct a valid message hash to sign using Permit2Proxy's utility func
// Construct a valid message hash to sign using Permit2Proxy's utility func
const msgHash = await client.readContract({
address: PERMIT2_PROXY_ADDRESS,
abi: permit2ProxyAbi,
Expand Down
7 changes: 4 additions & 3 deletions src/Periphery/Permit2Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { ERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/ERC2

/// @title Permit2Proxy
/// @author LI.FI (https://li.fi)
/// @notice Proxy contract allowing gasless (Permit2-enabled) calls to our
/// diamond contract
/// @notice Proxy contract allowing gasless calls via Permit2 as well as making
/// token approvals via ERC20 Permit (EIP-2612) to our diamond contract
/// @custom:version 1.0.0
contract Permit2Proxy {
/// Storage ///
Expand All @@ -31,7 +31,8 @@ contract Permit2Proxy {

/// Types ///

// @dev LIFI Specific Witness to verify
// @dev LIFI Specific Witness which verifies the correct calldata and
// diamond address
struct LIFICall {
address diamondAddress;
bytes32 diamondCalldataHash;
Expand Down

0 comments on commit 10b6204

Please sign in to comment.