WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5d3cccf

Browse files
authored
Merge pull request #753 from lungern-tech/main
S02选择器碰撞示例代码与solidity不一致
2 parents 6a0370a + f8b3a08 commit 5d3cccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S02_SelectorClash/SelectorClash.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ contract SelectorClash {
1010
solved = true;
1111
}
1212

13-
function executeCrossChainTx(bytes memory _method, bytes memory _bytes) public returns(bool success){
14-
(success, ) = address(this).call(abi.encodePacked(bytes4(keccak256(abi.encodePacked(_method, "(bytes,bytes,uint64)"))), abi.encode(_bytes)));
13+
function executeCrossChainTx(bytes memory _method, bytes memory _bytes, bytes memory _bytes1, uint64 _num) public returns(bool success){
14+
(success, ) = address(this).call(abi.encodePacked(bytes4(keccak256(abi.encodePacked(_method, "(bytes,bytes,uint64)"))), abi.encode(_bytes, _bytes1, _num)));
1515
}
1616

1717
function secretSlector() external pure returns(bytes4){

0 commit comments

Comments
 (0)