From 593255570b4bbfdd4f13c8a0b340814474f67366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Wed, 11 Jan 2023 17:39:58 +0000 Subject: [PATCH] go fmt + lint. --- chain/gen/genesis/genesis.go | 2 +- chain/gen/genesis/genesis_eth.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/gen/genesis/genesis.go b/chain/gen/genesis/genesis.go index ea2ba6bf7..4e53c1e29 100644 --- a/chain/gen/genesis/genesis.go +++ b/chain/gen/genesis/genesis.go @@ -605,7 +605,7 @@ func MakeGenesisBlock(ctx context.Context, j journal.Journal, bs bstore.Blocksto if err != nil { return nil, xerrors.Errorf("failed to flush state tree: %w", err) } - + store := adt.WrapStore(ctx, cbor.NewCborStore(bs)) emptyroot, err := adt0.MakeEmptyArray(store).Root() if err != nil { diff --git a/chain/gen/genesis/genesis_eth.go b/chain/gen/genesis/genesis_eth.go index 82223e3fc..2b48ad252 100644 --- a/chain/gen/genesis/genesis_eth.go +++ b/chain/gen/genesis/genesis_eth.go @@ -73,7 +73,7 @@ func MakeEthNullAddressActor(av actorstypes.Version, addr address.Address) (*typ func SetupEthNullAddresses(ctx context.Context, st *state.StateTree, nv network.Version) ([]address.Address, error) { av, err := actorstypes.VersionForNetwork(nv) if err != nil { - return nil, xerrors.Errorf("failed to resolve actors version for network version %d: %w", err) + return nil, xerrors.Errorf("failed to resolve actors version for network version %d: %w", av, err) } if av < actorstypes.Version10 {