-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
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
Task 57 用复杂合约测试FISCO BCOS的合约执行逻辑,反馈相关问题 #4008
Open
hogoqkl
wants to merge
782
commits into
FISCO-BCOS:dev
Choose a base branch
from
hogoqkl:master
base: dev
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: wenlinli <1574249665@qq.com>
…ails with a certain probability (FISCO-BCOS#3529)
Co-authored-by: jimmyshi <417711026@qq.com>
…eploy a contract in a shard (FISCO-BCOS#3547)
…ommit concurrent bug (FISCO-BCOS#3553)
…fect, fix rotate error when viewchange rotate block. (FISCO-BCOS#3908)
…dress check when rotate proposal occurs viewchange when this proposal into pre-commit. (FISCO-BCOS#3916)
…dd CONSENSUS_CANDIDATE_SEALER in rpbft, add more debug log in pbft msg. (FISCO-BCOS#3918)
…bug when upgrade chain to 3.5.0, use concurrent_map to avoid pbft cache thread unsafe insert. (FISCO-BCOS#3926)
…R1 and USR2 in start.sh(FISCO-BCOS#3947)
…sal causing viewchange, directly return in second rotate tx. (FISCO-BCOS#3962)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在测试下面合约时会出现问题:
某个多参数合约方法:
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract Test {
function methodWithLotsOfParameters(
uint256 param1,
uint256 param2,
uint256 param3,
uint256 param4,
uint256 param5,
uint256 param6,
uint256 param7,
uint256 param8,
uint256 param9,
uint256 param10,
uint256 param11,
uint256 param12,
uint256 param13,
uint256 param14,
uint256 param15,
uint256 param16,
uint256 param17,
uint256 param18,
uint256 param19,
uint256 param20
) public pure returns (uint256) {
// Perform some operations with the parameters
return param1 + param2 + param3 + param4 + param5 + param6 + param7 + param8 + param9 + param10 + param11 + param12 + param13 + param14 + param15 + param16 + param17 + param18 + param19 + param20;
}
}
填写参数后:
返回的这个报错:
测试OpenZeppelin和WTF中的相关合约,使用合约IDE进行编译和部署的过程中未发现任何问题。合约IDE的编译版本为0.8.11。
针对测试,写了一个相关复杂合约(主合约代码如下),在编译、部署和调用过程中,未出现任何错误或异常情况,合约的功能和逻辑按预期工作,没有引发潜在的问题或漏洞。
`
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "Ownable.sol";
import "Counters.sol";
import "ECDSA.sol";
import "EIP712.sol";
import "SafeMath.sol";
import "Strings.sol";
import "ERC721.sol";
/*
@title 商品合约
*/
contract Product is ERC721, EIP712, Ownable {
}`