aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/static_service.go
diff options
context:
space:
mode:
authoraaronbuchwald <[email protected]>2020-11-25 11:28:48 -0500
committerGitHub <[email protected]>2020-11-25 11:28:48 -0500
commit2ea6c2aeacd37f347c5794d6b300a6d1815c251b (patch)
treece38ae6325561029628e09929615e141e7f3b144 /plugin/evm/static_service.go
parent44c27ae8f05bb7f1076d9159d4106afd41e2e010 (diff)
parent61479754d935e36993f7144d70d7c518cdb26a36 (diff)
Merge pull request #61 from ava-labs/client-api
Add avax API client and upgrade to avalanchego v1.0.5-client
Diffstat (limited to 'plugin/evm/static_service.go')
-rw-r--r--plugin/evm/static_service.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugin/evm/static_service.go b/plugin/evm/static_service.go
index 1e48734..1b45939 100644
--- a/plugin/evm/static_service.go
+++ b/plugin/evm/static_service.go
@@ -8,7 +8,6 @@ import (
"encoding/json"
"github.com/ava-labs/coreth/core"
- "github.com/ava-labs/avalanchego/utils/formatting"
)
// StaticService defines the static API services exposed by the evm
@@ -16,7 +15,7 @@ type StaticService struct{}
// BuildGenesis returns the UTXOs such that at least one address in [args.Addresses] is
// referenced in the UTXO.
-func (*StaticService) BuildGenesis(_ context.Context, args *core.Genesis) (formatting.CB58, error) {
+func (*StaticService) BuildGenesis(_ context.Context, args *core.Genesis) ([]byte, error) {
bytes, err := json.Marshal(args)
- return formatting.CB58{Bytes: bytes}, err
+ return bytes, err
}