Skip to content

Commit 86e5a24

Browse files
committed
tests: fix to check if staticcall is successful
Signed-off-by: Jun Kimura <[email protected]>
1 parent 129a912 commit 86e5a24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/LCPClientTest.t.sol

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ contract LCPClientTest is BasicTest {
135135
(bool success, bytes memory ret) = address(lc).staticcall(
136136
abi.encodeWithSelector(LCPClientBase.updateClient.selector, clientId, message)
137137
);
138+
require(success, "failed to update duplicated client");
138139
heights = abi.decode(ret, (Height.Data[]));
139140
require(heights.length == 0, "heights length must be 0");
140141
}

0 commit comments

Comments
 (0)