Skip to content

Commit 0098ce9

Browse files
Merge pull request tronprotocol#79 from XvZipo/test/release_v4.7.6_updateGradlew
fix case, kzg precompile has been removed
2 parents a7cd55f + 83690ca commit 0098ce9

1 file changed

Lines changed: 33 additions & 15 deletions

File tree

  • testcase/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/newGrammar

testcase/src/test/java/stest/tron/wallet/dailybuild/tvmnewcommand/newGrammar/BlobTest.java

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,18 @@ public void test05KZGPointEvaluation(){
153153
false, 0, maxFeeLimit,"0",0, contractExcAddress, contractExcKey, blockingStubFull);
154154
System.out.println(transactionExtention.toString());
155155
String result = ByteArray.toHexString(transactionExtention.getConstantResult(0).toByteArray());
156+
//KZG removed
157+
// Assert.assertEquals(
158+
// "0000000000000000000000000000000000000000000000000000000000000001" +
159+
// "0000000000000000000000000000000000000000000000000000000000000040" +
160+
// "0000000000000000000000000000000000000000000000000000000000000040" +
161+
// "0000000000000000000000000000000000000000000000000000000000001000" +
162+
// "73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", result);
163+
156164
Assert.assertEquals(
157-
"0000000000000000000000000000000000000000000000000000000000000001" +
158-
"0000000000000000000000000000000000000000000000000000000000000040" +
159-
"0000000000000000000000000000000000000000000000000000000000000040" +
160-
"0000000000000000000000000000000000000000000000000000000000001000" +
161-
"73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", result);
165+
"00000000000000000000000000000000000000000000000000000000000000010" +
166+
"000000000000000000000000000000000000000000000000000000000000040" +
167+
"0000000000000000000000000000000000000000000000000000000000000000", result);
162168
}
163169

164170
@Test(enabled = true, description = "test blob KZGPointEvaluation")
@@ -180,12 +186,18 @@ public void test06KZGPointEvaluation(){
180186
Assert.assertEquals(Protocol.TransactionInfo.code.SUCESS, info.getResult());
181187
Assert.assertEquals(Protocol.Transaction.Result.contractResult.SUCCESS, info.getReceipt().getResult());
182188
String result = ByteArray.toHexString(info.getContractResult(0).toByteArray());
189+
// KZG removed
190+
// Assert.assertEquals(
191+
// "0000000000000000000000000000000000000000000000000000000000000001" +
192+
// "0000000000000000000000000000000000000000000000000000000000000040" +
193+
// "0000000000000000000000000000000000000000000000000000000000000040" +
194+
// "0000000000000000000000000000000000000000000000000000000000001000" +
195+
// "73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", result);
196+
183197
Assert.assertEquals(
184-
"0000000000000000000000000000000000000000000000000000000000000001" +
185-
"0000000000000000000000000000000000000000000000000000000000000040" +
186-
"0000000000000000000000000000000000000000000000000000000000000040" +
187-
"0000000000000000000000000000000000000000000000000000000000001000" +
188-
"73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", result);
198+
"00000000000000000000000000000000000000000000000000000000000000010" +
199+
"000000000000000000000000000000000000000000000000000000000000040" +
200+
"0000000000000000000000000000000000000000000000000000000000000000", result);
189201
}
190202

191203

@@ -206,12 +218,18 @@ public void test07callKZGPointEvaluation(){
206218
Assert.assertEquals(Protocol.TransactionInfo.code.SUCESS, info.getResult());
207219
Assert.assertEquals(Protocol.Transaction.Result.contractResult.SUCCESS, info.getReceipt().getResult());
208220
String result = ByteArray.toHexString(info.getContractResult(0).toByteArray());
221+
// KZG removed
222+
// Assert.assertEquals(
223+
// "0000000000000000000000000000000000000000000000000000000000000001" +
224+
// "0000000000000000000000000000000000000000000000000000000000000040" +
225+
// "0000000000000000000000000000000000000000000000000000000000000040" +
226+
// "0000000000000000000000000000000000000000000000000000000000001000" +
227+
// "73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", result);
228+
209229
Assert.assertEquals(
210-
"0000000000000000000000000000000000000000000000000000000000000001" +
211-
"0000000000000000000000000000000000000000000000000000000000000040" +
212-
"0000000000000000000000000000000000000000000000000000000000000040" +
213-
"0000000000000000000000000000000000000000000000000000000000001000" +
214-
"73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001", result);
230+
"00000000000000000000000000000000000000000000000000000000000000010" +
231+
"000000000000000000000000000000000000000000000000000000000000040" +
232+
"0000000000000000000000000000000000000000000000000000000000000000", result);
215233
}
216234

217235
@Test(enabled = true, description = "test staticcallBlobhash")

0 commit comments

Comments
 (0)