Skip to content

Commit

Permalink
updated gmp test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahramy committed Oct 20, 2024
1 parent 82d353a commit 4945f42
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/amplifier/contracts/AmplifierGMPTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pragma solidity ^0.8.0;

import { AxelarExecutable } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/executable/AxelarExecutable.sol';
import { IAxelarGateway } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IAxelarGateway.sol';

/**
* @title AmplifierGMPTest
Expand All @@ -24,7 +23,7 @@ contract AmplifierGMPTest is AxelarExecutable {
*/
function setRemoteValue(string calldata destinationChain, string calldata destinationAddress, string calldata _message) external {
bytes memory payload = abi.encode(_message);
gateway.callContract(destinationChain, destinationAddress, payload);
gateway().callContract(destinationChain, destinationAddress, payload);
}

/**
Expand All @@ -34,7 +33,12 @@ contract AmplifierGMPTest is AxelarExecutable {
* @param _sourceAddress address on src chain where tx is originating from
* @param _payload encoded gmp message sent from src chain
*/
function _execute(string calldata _sourceChain, string calldata _sourceAddress, bytes calldata _payload) internal override {
function _execute(
bytes32 /*commandId*/,
string calldata _sourceChain,
string calldata _sourceAddress,
bytes calldata _payload
) internal virtual override {
(message) = abi.decode(_payload, (string));
sourceChain = _sourceChain;
sourceAddress = _sourceAddress;
Expand Down

0 comments on commit 4945f42

Please sign in to comment.