Skip to content

Commit 19f1bc1

Browse files
author
wangqqqqq
committed
Add release_4.2.2 test case
1 parent 0bbec5e commit 19f1bc1

9 files changed

Lines changed: 401 additions & 6 deletions

File tree

‎framework/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/clearabi/ClearAbi002.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void beforeClass() {
7878
blockingStubSolidity = WalletSolidityGrpc.newBlockingStub(channelSolidity);
7979
}
8080

81-
@Test(enabled = false, description = "Clear a contract with ABI created by itself")
81+
@Test(enabled = true, description = "Clear a contract with ABI created by itself")
8282
public void testClearAbi() {
8383
Assert.assertTrue(PublicMethed
8484
.sendcoin(contractExcAddress, 10000000000L, testNetAccountAddress, testNetAccountKey,

‎framework/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/clearabi/ClearAbi003.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void beforeClass() {
7878
blockingStubSolidity = WalletSolidityGrpc.newBlockingStub(channelSolidity);
7979
}
8080

81-
@Test(enabled = false, description = "Clear a contract without ABI")
81+
@Test(enabled = true, description = "Clear a contract without ABI")
8282
public void testClearAbi() {
8383
Assert.assertTrue(PublicMethed
8484
.sendcoin(contractExcAddress, 10000000000L, testNetAccountAddress, testNetAccountKey,

‎framework/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/clearabi/ClearAbi004.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void beforeClass() {
7575
blockingStubSolidity = WalletSolidityGrpc.newBlockingStub(channelSolidity);
7676
}
7777

78-
@Test(enabled = false, description = "Clear a account address")
78+
@Test(enabled = true, description = "Clear a account address")
7979
public void testClearAbi() {
8080
Assert.assertTrue(PublicMethed
8181
.sendcoin(contractExcAddress, 10000000000L, testNetAccountAddress, testNetAccountKey,

‎framework/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/clearabi/ClearAbi006.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void beforeClass() {
7878
blockingStubSolidity = WalletSolidityGrpc.newBlockingStub(channelSolidity);
7979
}
8080

81-
@Test(enabled = false, description = "Clear a uninitialized account")
81+
@Test(enabled = true, description = "Clear a uninitialized account")
8282
public void testClearAbi() {
8383
Assert.assertTrue(PublicMethed
8484
.sendcoin(contractExcAddress, 10000000000L, testNetAccountAddress, testNetAccountKey,

‎framework/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/clearabi/ClearAbi007.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void beforeClass() {
7878
blockingStubSolidity = WalletSolidityGrpc.newBlockingStub(channelSolidity);
7979
}
8080

81-
@Test(enabled = false, description = "Clear a not meet the rules address")
81+
@Test(enabled = true, description = "Clear a not meet the rules address")
8282
public void testClearAbi() {
8383
Assert.assertTrue(PublicMethed
8484
.sendcoin(contractExcAddress, 10000000000L, testNetAccountAddress, testNetAccountKey,

‎framework/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/clearabi/ClearAbi008.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void beforeClass() {
7878
blockingStubSolidity = WalletSolidityGrpc.newBlockingStub(channelSolidity);
7979
}
8080

81-
@Test(enabled = false, description = "Clear a contract with ABI created by itself,"
81+
@Test(enabled = true, description = "Clear a contract with ABI created by itself,"
8282
+ "clear a contract by itself again")
8383
public void testClearAbi() {
8484
Assert.assertTrue(PublicMethed

‎framework/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/clearabi/NoAbi009.java‎

Lines changed: 356 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
contract testNoABiContract{
2+
uint public i = 2;
3+
event trigger(uint256 i, address sender);
4+
5+
function testTrigger() public returns (uint) {
6+
i++;
7+
emit trigger(i, msg.sender);
8+
return i;
9+
}
10+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
contract Factory {
2+
event Deployed(address addr, uint256 salt, address sender);
3+
function deploy(bytes memory code, uint256 salt) public returns(address){
4+
address addr;
5+
assembly {
6+
addr := create2(0, add(code, 0x20), mload(code), salt)
7+
if iszero(extcodesize(addr)) {
8+
revert(0, 0)
9+
}
10+
}
11+
emit Deployed(addr, salt, msg.sender);
12+
return addr;
13+
}
14+
}
15+
16+
17+
18+
contract testNoABiContract {
19+
uint public i=0;
20+
event trigger(uint256 i, address sender);
21+
22+
constructor () public {}
23+
24+
function plusOne() public returns(uint){
25+
i++;
26+
emit trigger(i, msg.sender);
27+
return i;
28+
}
29+
}

0 commit comments

Comments
 (0)