-
Notifications
You must be signed in to change notification settings - Fork 2
/
Migrate.go
31 lines (27 loc) · 895 Bytes
/
Migrate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package v018
import (
sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types"
"github.com/fibonacci-chain/fbc/x/evm/legacy/v0_16"
)
const (
ModuleName = "evm"
)
// Migrate adds contract
func Migrate(oldGenState v0_16.GenesisState) GenesisState {
params := Params{
EnableCreate: false,
EnableCall: false,
ExtraEIPs: oldGenState.Params.ExtraEIPs,
EnableContractDeploymentWhitelist: true,
EnableContractBlockedList: true,
MaxGasLimitPerTx: 30000000,
}
return GenesisState{
Accounts: oldGenState.Accounts,
TxsLogs: oldGenState.TxsLogs,
ContractDeploymentWhitelist: []sdk.AccAddress{},
ContractBlockedList: []sdk.AccAddress{},
ChainConfig: oldGenState.ChainConfig,
Params: params,
}
}