Skip to content

Commit 0a461ad

Browse files
committed
nit
1 parent da239ad commit 0a461ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/utils/common.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
"github.com/ava-labs/avalanchego/vms/platformvm"
3131
"github.com/ava-labs/avalanchego/vms/platformvm/txs"
3232
"github.com/ava-labs/subnet-evm/core"
33+
"github.com/ava-labs/subnet-evm/params"
3334

3435
"github.com/aws/aws-sdk-go-v2/service/ec2/types"
3536
"golang.org/x/exp/slices"
@@ -405,7 +406,10 @@ func GetBlockchainTx(endpoint string, blockchainID ids.ID) (*txs.CreateChainTx,
405406

406407
func ByteSliceToSubnetEvmGenesis(bs []byte) (core.Genesis, error) {
407408
var gen core.Genesis
408-
err := json.Unmarshal(bs, &gen)
409+
var err error
410+
params.WithTempRegisteredExtras(func() {
411+
err = json.Unmarshal(bs, &gen)
412+
})
409413
return gen, err
410414
}
411415

0 commit comments

Comments
 (0)