From edd30f3741ef887ca70da76e962abcd1c2721f45 Mon Sep 17 00:00:00 2001 From: srdtrk Date: Wed, 15 Jan 2025 17:34:05 +0800 Subject: [PATCH] fix: fixed solidity tests --- test/solidity-ibc/ICS20TransferTest.t.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/solidity-ibc/ICS20TransferTest.t.sol b/test/solidity-ibc/ICS20TransferTest.t.sol index 7f652074..731903df 100644 --- a/test/solidity-ibc/ICS20TransferTest.t.sol +++ b/test/solidity-ibc/ICS20TransferTest.t.sol @@ -336,7 +336,7 @@ contract ICS20TransferTest is Test { // test invalid token contract defaultPacketData.denom = "invalid"; packet.payloads[0].value = abi.encode(defaultPacketData); - vm.expectRevert(abi.encodeWithSelector(IICS20Errors.ICS20InvalidAddress.selector, "invalid")); + vm.expectRevert(abi.encodeWithSelector(IICS20Errors.ICS20DenomNotFound.selector, "invalid")); ics20Transfer.onSendPacket( IIBCAppCallbacks.OnSendPacketCallback({ sourceChannel: packet.sourceChannel, @@ -506,7 +506,7 @@ contract ICS20TransferTest is Test { // test invalid contract/denom defaultPacketData.denom = "invalid"; packet.payloads[0].value = abi.encode(defaultPacketData); - vm.expectRevert(abi.encodeWithSelector(IICS20Errors.ICS20InvalidAddress.selector, "invalid")); + vm.expectRevert(abi.encodeWithSelector(IICS20Errors.ICS20DenomNotFound.selector, "invalid")); ics20Transfer.onAcknowledgementPacket( IIBCAppCallbacks.OnAcknowledgementPacketCallback({ sourceChannel: packet.sourceChannel, @@ -606,7 +606,7 @@ contract ICS20TransferTest is Test { // test invalid contract defaultPacketData.denom = "invalid"; packet.payloads[0].value = abi.encode(defaultPacketData); - vm.expectRevert(abi.encodeWithSelector(IICS20Errors.ICS20InvalidAddress.selector, "invalid")); + vm.expectRevert(abi.encodeWithSelector(IICS20Errors.ICS20DenomNotFound.selector, "invalid")); ics20Transfer.onTimeoutPacket( IIBCAppCallbacks.OnTimeoutPacketCallback({ sourceChannel: packet.sourceChannel,