Skip to content

Commit

Permalink
counterpartyPayee
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 28, 2024
1 parent 20d2b28 commit 57dfff6
Show file tree
Hide file tree
Showing 11 changed files with 185 additions and 141 deletions.
4 changes: 2 additions & 2 deletions integration_tests/configs/ibc.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ config {
'account-prefix': 'cro',
'coin-type': 394,
'app-config': {
'minimum-gas-prices': '500basecro',
'minimum-gas-prices': '0basecro',
},
validators: [
{
Expand Down Expand Up @@ -68,7 +68,7 @@ config {
},
{
name: 'signer2',
coins: '10000000000000cro',
coins: '10000000000000cro,100000000000ibcfee',
mnemonic: '${SIGNER2_MNEMONIC}',
},
] + [
Expand Down
8 changes: 4 additions & 4 deletions integration_tests/contracts/contracts/TestRelayer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ contract TestRelayer {
}
}

function callRegisterPayee(string calldata portID, string calldata channelID, address relayerAddr) public returns (bool) {
function callRegisterPayee(string calldata portID, string calldata channelID, address payeeAddr) public returns (bool) {
require(payee == address(0) || payee == msg.sender, "register fail");
bool result = relayer.registerPayee(portID, channelID, relayerAddr);
bool result = relayer.registerPayee(portID, channelID, payeeAddr);
require(result, "call failed");
payee = msg.sender;
}

function callRegisterCounterpartyPayee(string calldata portID, string calldata channelID, address relayerAddr) public returns (bool) {
function callRegisterCounterpartyPayee(string calldata portID, string calldata channelID, string calldata counterpartyPayeeAddr) public returns (bool) {
require(counterpartyPayee == address(0) || counterpartyPayee == msg.sender, "register fail");
bool result = relayer.registerCounterpartyPayee(portID, channelID, relayerAddr);
bool result = relayer.registerCounterpartyPayee(portID, channelID, counterpartyPayeeAddr);
require(result, "call failed");
counterpartyPayee = msg.sender;
}
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/cosmoscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ def ibc_transfer(
to,
amount,
channel, # src channel
target_version, # chain version number of target chain
target_version=1, # chain version number of target chain
event_query_tx_for=False,
**kwargs,
):
Expand Down
Loading

0 comments on commit 57dfff6

Please sign in to comment.