Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ahramy committed Nov 9, 2024
1 parent e1c0395 commit 25889f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/InterchainTokenService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ contract InterchainTokenService is
uint256 amount,
bytes memory data,
uint256 gasValue
) external whenNotPaused {
) external payable whenNotPaused {
if (data.length == 0) revert EmptyData();
amount = _takeToken(tokenId, msg.sender, amount, false);

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IInterchainTokenService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ interface IInterchainTokenService is
uint256 amount,
bytes calldata data,
uint256 gasValue
) external;
) external payable;

/**
* @notice Sets the flow limits for multiple tokens.
Expand Down
4 changes: 3 additions & 1 deletion test/InterchainTokenService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,9 @@ describe('Interchain Token Service', () => {

await expect(
reportGas(
service.callContractWithInterchainToken(tokenId, destinationChain, destAddress, amount, data, 0),
service.callContractWithInterchainToken(tokenId, destinationChain, destAddress, amount, data, 0, {
value: gasValue,
}),
`Call service.callContractWithInterchainToken ${type}`,
),
)
Expand Down

0 comments on commit 25889f2

Please sign in to comment.