Skip to content

Commit

Permalink
make slither happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Apr 15, 2024
1 parent 9d081a1 commit 518e3ae
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions contracts/TokenHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ contract TokenHandler is ITokenHandler, ITokenManagerType, ReentrancyGuard, Crea
}
}

/**
* @notice This function pays gas to the gas service and calls the gateway to transmit a CallContract.
* @param destinationChain The destination chain.
* @param destinationAddress The destination address.
* @param payload The payload to transmit.
* @param metadataVersion The metadata version is used to determine how to pay for gas.
* @param gasValue how much gas to pay.
*/
// slither-disable-next-line locked-ether
function callContract(
string calldata destinationChain,
string calldata destinationAddress,
Expand Down Expand Up @@ -209,6 +218,17 @@ contract TokenHandler is ITokenHandler, ITokenManagerType, ReentrancyGuard, Crea
IAxelarGateway(gateway).callContract(destinationChain, destinationAddress, payload);
}

/**
* @notice This function pays gas to the gas service and calls the gateway to transmit a CallContractWithToken.
* @param destinationChain The destination chain.
* @param destinationAddress The destination address.
* @param payload The payload to transmit.
* @param metadataVersion The metadata version is used to determine how to pay for gas.
* @param symbol The gateway symbol.
* @param amount The amount of token to send.
* @param gasValue how much gas to pay.
*/
// slither-disable-next-line locked-ether
function callContractWithToken(
string calldata destinationChain,
string calldata destinationAddress,
Expand Down

0 comments on commit 518e3ae

Please sign in to comment.