-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add constructor-args value * fix constructor empty bug * cargo fmt * update bsc rpc * add real_balance test * fix some value bugs
- Loading branch information
1 parent
d7469be
commit 8fdcdf7
Showing
10 changed files
with
137 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"type":"constructor","inputs":[{"name":"_x1","type":"uint256","internalType":"uint256"},{"name":"_t","type":"address","internalType":"address"}],"stateMutability":"payable"},{"type":"function","name":"t","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"test1","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"x1","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"event","name":"AssertionFailed","inputs":[{"name":"message","type":"string","indexed":false,"internalType":"string"}],"anonymous":false}] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
60806040525f80556040516101be3803806101be833981016040819052602391604b565b5f91909155600180546001600160a01b0319166001600160a01b039092169190911790556083565b5f8060408385031215605b575f80fd5b825160208401519092506001600160a01b03811681146078575f80fd5b809150509250929050565b61012e806100905f395ff3fe608060405260043610602f575f3560e01c8063343943bd1460335780636b59084d14605857806392d0d153146060575b5f80fd5b348015603d575f80fd5b5060455f5481565b6040519081526020015b60405180910390f35b605e6094565b005b348015606a575f80fd5b50600154607d906001600160a01b031681565b6040516001600160a01b039091168152602001604f565b60015f55476107080360a65760a660a8565b565b60a67fb42604cb105a16c8f6db8a41e6b00c0c1b4826465e8bc504b3eb3e88b3e6a4a060405160ee9060208082526003908201526242756760e81b604082015260600190565b60405180910390a156fea264697066735822122036ed630f0c26eee1d9ac1ee1b34a6d817190be6bcb5d6c9cdab1d10dff0795d264736f6c63430008190033 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"type":"constructor","inputs":[{"name":"_x1","type":"uint256","internalType":"uint256"},{"name":"_t","type":"address","internalType":"address"}],"stateMutability":"payable"},{"type":"function","name":"t","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"test1","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"x1","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
60806040525f8055604051610131380380610131833981016040819052602391604b565b5f91909155600180546001600160a01b0319166001600160a01b039092169190911790556083565b5f8060408385031215605b575f80fd5b825160208401519092506001600160a01b03811681146078575f80fd5b809150509250929050565b60a28061008f5f395ff3fe6080604052348015600e575f80fd5b50600436106030575f3560e01c80636b59084d14603457806392d0d15314603e575b5f80fd5b603c60025f55565b005b6001546050906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f3fea2646970667358221220defb85baec4ed35ad480839ba541008dc7ca40059a79a7ed2023c71a1226ff2b64736f6c63430008190033 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"type":"function","name":"test1","inputs":[],"outputs":[],"stateMutability":"nonpayable"}] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
60806040525f80553480156011575f80fd5b50606a80601d5f395ff3fe6080604052348015600e575f80fd5b50600436106026575f3560e01c80636b59084d14602a575b5f80fd5b603260025f55565b00fea26469706673582212201f1f74f6a1949919571720fbfc08bc69eb34a2dd22176f10cefc91651203c53a64736f6c63430008190033 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.3; | ||
import "solidity_utils/lib.sol"; | ||
|
||
contract Test1 { | ||
uint public x1 = 0; | ||
address public t; | ||
constructor(uint _x1, address _t) payable { | ||
x1 = _x1; | ||
t = _t; | ||
} | ||
|
||
function test1() payable public { | ||
x1 = 1; | ||
if (address(this).balance == 1800) { | ||
bug(); | ||
} | ||
} | ||
} | ||
|
||
|
||
contract Test2 { | ||
uint x2 = 0; | ||
address public t; | ||
constructor(uint _x2, address _t) payable { | ||
x2 = _x2; | ||
t = _t; | ||
} | ||
|
||
function test1() public { | ||
x2 = 2; | ||
} | ||
} | ||
|
||
contract Test3 { | ||
uint x2 = 0; | ||
|
||
function test1() public { | ||
x2 = 2; | ||
} | ||
} |