aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm_test.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-11-29 14:38:44 -0500
committerAaron Buchwald <[email protected]>2020-11-29 14:38:44 -0500
commit627bc7f7fd75d385e623c3c5177c5aeb639a0e52 (patch)
treedba8e4bec0043766b5367c7409772fa7b653b539 /plugin/evm/vm_test.go
parent1ed9c772e948720b02d38a233c9f63a7a95ee761 (diff)
Address comments
Diffstat (limited to 'plugin/evm/vm_test.go')
-rw-r--r--plugin/evm/vm_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/evm/vm_test.go b/plugin/evm/vm_test.go
index 1b894ce..2993b3b 100644
--- a/plugin/evm/vm_test.go
+++ b/plugin/evm/vm_test.go
@@ -63,10 +63,14 @@ func BuildGenesisTest(t *testing.T) []byte {
if err := json.Unmarshal([]byte(genesisJSON), genesis); err != nil {
t.Fatalf("Problem unmarshaling genesis JSON: %s", err)
}
- genesisBytes, err := ss.BuildGenesis(nil, genesis)
+ genesisReply, err := ss.BuildGenesis(nil, genesis)
if err != nil {
t.Fatalf("Failed to create test genesis")
}
+ genesisBytes, err := formatting.Decode(genesisReply.Encoding, genesisReply.Bytes)
+ if err != nil {
+ t.Fatalf("Failed to decode genesis bytes: %w", err)
+ }
return genesisBytes
}