mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Cmptbility test for Root StateDB Accounts tree
Checked with commonjs version:
c8414bd205
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
"math/big"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
ethCommon "github.com/ethereum/go-ethereum/common"
|
||||
@@ -185,6 +186,9 @@ func TestAccountLoopRandom(t *testing.T) {
|
||||
}
|
||||
|
||||
func bigFromStr(h string, u int) *big.Int {
|
||||
if u == 16 {
|
||||
h = strings.TrimPrefix(h, "0x")
|
||||
}
|
||||
b, ok := new(big.Int).SetString(h, u)
|
||||
if !ok {
|
||||
panic("bigFromStr err")
|
||||
|
||||
Reference in New Issue
Block a user