@@ -91,6 +91,11 @@ public void testDeployTransferTokenContract() {
91
91
grammarAddress , blockingStubFull );
92
92
PublicMethed .waitProduceNextBlock (blockingStubFull );
93
93
PublicMethed .waitProduceNextBlock (blockingStubFull );
94
+ PublicMethed .triggerContract (contractAddress ,
95
+ "test()" , "#" , false ,
96
+ 0 , maxFeeLimit , grammarAddress , testKeyForGrammarAddress , blockingStubFull );
97
+ PublicMethed .waitProduceNextBlock (blockingStubFull );
98
+ PublicMethed .waitProduceNextBlock (blockingStubFull );
94
99
95
100
String txid = "" ;
96
101
txid = PublicMethed .triggerContract (contractAddress ,
@@ -105,7 +110,7 @@ public void testDeployTransferTokenContract() {
105
110
Long returnnumber = ByteArray .toLong (ByteArray .fromHexString (ByteArray .toHexString (
106
111
infoById .get ().getContractResult (0 ).toByteArray ())));
107
112
108
- Assert .assertTrue (returnnumber == 0 );
113
+ Assert .assertTrue (returnnumber == 1 );
109
114
110
115
txid = PublicMethed .triggerContract (contractAddress ,
111
116
"getResult2()" , "#" , false ,
@@ -120,7 +125,7 @@ public void testDeployTransferTokenContract() {
120
125
Long returnnumber2 = ByteArray .toLong (ByteArray .fromHexString (
121
126
ByteArray .toHexString (infoById .get ().getContractResult (0 ).toByteArray ())));
122
127
123
- Assert .assertTrue (returnnumber2 == 0 );
128
+ Assert .assertTrue (returnnumber2 == 1 );
124
129
}
125
130
126
131
/**
0 commit comments