Closed Jmagicc closed 2 weeks ago
call交易发生overflow
can you plz explain me the accurate error you trying to ask.
看起来只是简单call交易被revert了 能否给更多的细节
https://www.wtf.academy/docs/solidity-103/Timelock/
执行 (6. 在锁定期满调用executeTransaction)时候发生错误,call交易发生overflow
https://www.wtf.academy/docs/solidity-103/Timelock/
执行 (6. 在锁定期满调用executeTransaction)时候发生错误,call交易发生overflow
I will check it. Wait.
call交易发生overflow
函数签名使用错误,应使用changeAdmin(address)
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract SignatureTest {
event Signature(bytes);
function Sign(string memory signature, bytes memory data) public {
emit Signature(abi.encodePacked(bytes4(keccak256(bytes(signature))), data));
}
}
可以用这个合约测试一下签名
@Jmagicc 大佬如果看好没问题的话 可以关闭issue 谢谢
数字签名验证没问题。 // 利用call执行交易 (bool success, bytes memory returnData) = target.call{value: value}(callData); require(success, "Timelock::executeTransaction: Transaction execution reverted."); 这里发生了overflow,这会不会是solidity的版本影响呢
你截图里面的参数传的是changeAdmin(address newAdmin),真正的函数签名是:changeAdmin(address) 建议看一下函数选择器那一章 https://github.com/AmazingAng/WTF-Solidity/blob/main/29_Selector/readme.md
感谢提醒
Details (细节)
call交易发生overflow