Skip to content

Commit

Permalink
fix: fixed solidity tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Jan 15, 2025
1 parent 9dbb128 commit edd30f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/solidity-ibc/ICS20TransferTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit edd30f3

Please sign in to comment.