Skip to content

Commit

Permalink
style: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Nov 20, 2024
1 parent 8d0738a commit 36da8bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions solidity/src/contracts/Adapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ contract Adapter is IAdapter, Ownable, ReentrancyGuard {
Operation memory operation,
IPAM.Metadata calldata metadata
) external nonReentrant {
if (operation.erc20 != erc20)
revert InvalidOperation();
if (operation.erc20 != erc20) revert InvalidOperation();

(bool isAuthorized, bytes32 eventId) = IPAM(pam).isAuthorized(
operation,
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/contracts/PAM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contract PAM is Ownable, IPAM {
address recipient = _bytesToAddress(
content[offset:offset += recipientLen]
);

bytes memory data = content[offset:];

return (nonce == operation.nonce &&
Expand Down
6 changes: 5 additions & 1 deletion solidity/test/forge/DeployHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ contract DeployHelper {
XERC20Lockbox lockbox;
if (local) {
lockbox = XERC20Lockbox(
factory.deployLockbox(address(xerc20), address(uint160(uint256(erc20))), isNative)
factory.deployLockbox(
address(xerc20),
address(uint160(uint256(erc20))),
isNative
)
);
}

Expand Down
3 changes: 1 addition & 2 deletions solidity/test/hardhat/Adapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ const deployERC1820 = () => setCode(ERC1820, ERC1820BYTES)
value: amount,
},
)
}
else {
} else {
await erc20.connect(user).approve(adapter, amount)
tx = adapter.swap(
erc20.target,
Expand Down

0 comments on commit 36da8bb

Please sign in to comment.