Skip to content

Commit

Permalink
Merge pull request #21 from NomismaTech/amber/contractcall-gas-fix
Browse files Browse the repository at this point in the history
Fixed missing call options with paid gas when relaying contract call
  • Loading branch information
Foivos authored Jul 29, 2022
2 parents 38ff431 + ac7de7a commit 18d4647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ const updateCallContract = async (from: Network, blockNumber: number, relayData:
'approveContractCall',
[from.name, args.sender, args.destinationContractAddress, args.payloadHash],
['string', 'string', 'address', 'bytes32'],
async () => {
async (options: any) => {
const to = networks.find((chain) => chain.name == args.destinationChain);
const contract = new Contract(args.destinationContractAddress, IAxelarExecutable.abi, to!.relayerWallet);
relayData.callContract[commandId].execution = (
await (await contract.execute(commandId, from.name, args.sender, args.payload)).wait()
await (await contract.execute(commandId, from.name, args.sender, args.payload, options)).wait()
).transactionHash;
}
)
Expand Down

0 comments on commit 18d4647

Please sign in to comment.