We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一直是83分,但是我怎么都感觉这6道题都是对的,希望哪位能指出问题: 我的答案: 1.delegatecall是哪个类型的成员函数: address 2. 当用户A通过合约B来delegatecall合约C时,执行了__的函数,语境是__,msg.sender和msg.value来自__, 并且如果函数改变一些状态变量,产生的效果会作用于__的变量上: C;B;A;B 3. delegatecall在调用合约时: 可以指定交易发送的gas,但不可以指定发送的ETH数额 4. 使用delegatecall对当前合约和目标合约的状态变量有什么要求?: 变量名、变量类型、声明顺序都必须相同 5. 假设存在如下函数:那么下面选项中可以填在横线上的是? (bool success, bytes memory data) = addr.delegatecall(abi.encodeWithSignature("mint(uint256)", num)); 6. 在代理合约中,存储所有相关的变量的是_,存储所有函数的是___,同时____________ : 代理合约; 逻辑合约; 代理合约delegatecall逻辑合约
The text was updated successfully, but these errors were encountered:
4, 5 错了 建议查一下资料或者用remix跑一下
Sorry, something went wrong.
4和5 存在问题 4. 使用delegatecall对当前合约和目标合约的状态变量有什么要求?: 变量类型、声明顺序都必须相同,变量名可以不同,因为其实就是一个个slot的对应
No branches or pull requests
一直是83分,但是我怎么都感觉这6道题都是对的,希望哪位能指出问题:
我的答案:
1.delegatecall是哪个类型的成员函数: address
2. 当用户A通过合约B来delegatecall合约C时,执行了__的函数,语境是__,msg.sender和msg.value来自__, 并且如果函数改变一些状态变量,产生的效果会作用于__的变量上: C;B;A;B
3. delegatecall在调用合约时: 可以指定交易发送的gas,但不可以指定发送的ETH数额
4. 使用delegatecall对当前合约和目标合约的状态变量有什么要求?: 变量名、变量类型、声明顺序都必须相同
5. 假设存在如下函数:那么下面选项中可以填在横线上的是? (bool success, bytes memory data) = addr.delegatecall(abi.encodeWithSignature("mint(uint256)", num));
6. 在代理合约中,存储所有相关的变量的是_,存储所有函数的是___,同时____________ : 代理合约; 逻辑合约; 代理合约delegatecall逻辑合约
The text was updated successfully, but these errors were encountered: