Skip to content

Commit 25094fe

Browse files
author
Wenhua Zhang
committed
test: modify check nonce of blockresult
1 parent 41f1c6e commit 25094fe

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

framework/src/test/java/org/tron/core/jsonrpc/JsonrpcServiceTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.tron.core.jsonrpc;
22

3-
import com.google.protobuf.Any;
43
import com.google.protobuf.ByteString;
54
import java.io.File;
65
import lombok.extern.slf4j.Slf4j;
@@ -230,8 +229,7 @@ public void testGetBlockByNumber() {
230229
Assert.assertEquals(ByteArray.toJsonHex(blockCapsule.getNum()), blockResult.getNumber());
231230
Assert
232231
.assertEquals(blockCapsule.getTransactions().size(), blockResult.getTransactions().length);
233-
Assert.assertNull(blockResult.getNonce());
234-
232+
Assert.assertEquals("0x0000000000000000", blockResult.getNonce());
235233
}
236234

237235

0 commit comments

Comments
 (0)