diff --git a/core/resharding.go b/core/resharding.go index 8e2998bf5..d8aece2ba 100644 --- a/core/resharding.go +++ b/core/resharding.go @@ -231,7 +231,7 @@ func GetInitShardState() types.ShardState { pubKey := types.BlsPublicKey{} pubKey.FromLibBLSPublicKey(priKey.GetPublicKey()) // TODO: directly read address for bls too - curNodeID := types.NodeID{genesis.GenesisAccounts[index].Address, pubKey} + curNodeID := types.NodeID{common.HexToAddress(genesis.GenesisAccounts[index].Address), pubKey} com.NodeList = append(com.NodeList, curNodeID) } @@ -243,7 +243,7 @@ func GetInitShardState() types.ShardState { pubKey := types.BlsPublicKey{} pubKey.FromLibBLSPublicKey(priKey.GetPublicKey()) // TODO: directly read address for bls too - curNodeID := types.NodeID{genesis.GenesisFNAccounts[index].Address, pubKey} + curNodeID := types.NodeID{common.HexToAddress(genesis.GenesisFNAccounts[index].Address), pubKey} com.NodeList = append(com.NodeList, curNodeID) } shardState = append(shardState, com) diff --git a/test/test_before_submit.sh b/test/test_before_submit.sh index 6b4f7bc73..def903bf9 100755 --- a/test/test_before_submit.sh +++ b/test/test_before_submit.sh @@ -3,6 +3,8 @@ DIRROOT=$(dirname $0)/.. OS=$(uname -s) +export GO111MODULE=on + pushd $DIRROOT ./scripts/travis_checker.sh