Skip to content

Commit

Permalink
updated mx-chain-vm-common-go + updated EnableEpochsHandlerStubAllFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
sstanculeanu committed Sep 18, 2023
1 parent 3ad8e30 commit afab2d8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ require (
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1
github.com/gogo/protobuf v1.3.2
github.com/mitchellh/mapstructure v1.5.0
github.com/multiversx/mx-chain-core-go v1.2.15-0.20230828081708-1d1190bec635
github.com/multiversx/mx-chain-core-go v1.2.17-0.20230918144211-8728c8a6e2d5
github.com/multiversx/mx-chain-crypto-go v1.2.8
github.com/multiversx/mx-chain-logger-go v1.0.13
github.com/multiversx/mx-chain-scenario-go v1.2.1
github.com/multiversx/mx-chain-vm-common-go v1.5.6-0.20230901130135-4d211b1a41d2
github.com/multiversx/mx-chain-vm-common-go v1.5.6-0.20230918144414-73020ec780b7
github.com/multiversx/mx-components-big-int v1.0.0
github.com/pelletier/go-toml v1.9.3
github.com/stretchr/testify v1.8.1
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
github.com/multiversx/mx-chain-core-go v1.2.15-0.20230828081708-1d1190bec635 h1:BtuOBkYy3heZYLaqRys94rPwEiQq/HKHYRL8RXAq46A=
github.com/multiversx/mx-chain-core-go v1.2.15-0.20230828081708-1d1190bec635/go.mod h1:BILOGHUOIG5dNNX8cgkzCNfDaVtoYrJRYcPnpxRMH84=
github.com/multiversx/mx-chain-core-go v1.2.17-0.20230918144211-8728c8a6e2d5 h1:j20zxnqhffqW35Cek5yvRYYANE+ws4XMB2G4t4o4aOs=
github.com/multiversx/mx-chain-core-go v1.2.17-0.20230918144211-8728c8a6e2d5/go.mod h1:BILOGHUOIG5dNNX8cgkzCNfDaVtoYrJRYcPnpxRMH84=
github.com/multiversx/mx-chain-crypto-go v1.2.8 h1:wOgVlUaO5X4L8iEbFjcQcL8SZvv6WZ7LqH73BiRPhxU=
github.com/multiversx/mx-chain-crypto-go v1.2.8/go.mod h1:fkaWKp1rbQN9wPKya5jeoRyC+c/SyN/NfggreyeBw+8=
github.com/multiversx/mx-chain-logger-go v1.0.13 h1:eru/TETo0MkO4ZTnXsQDKf4PBRpAXmqjT02klNT/JnY=
github.com/multiversx/mx-chain-logger-go v1.0.13/go.mod h1:MZJhTAtZTJxT+yK2EHc4ZW3YOHUc1UdjCD0iahRNBZk=
github.com/multiversx/mx-chain-scenario-go v1.2.1 h1:9eC6VcOEAKRRKZ7EbSWPLzCdNIMWwuNBtAZlgR4cSMA=
github.com/multiversx/mx-chain-scenario-go v1.2.1/go.mod h1:EuZY7DpNFHVNSxJR8dKE1z2I8gBYfEFFPSwNUOXptqE=
github.com/multiversx/mx-chain-vm-common-go v1.5.6-0.20230901130135-4d211b1a41d2 h1:5ZyyNUvyV4QLIjz/tHgqSDC99FmF3H2q2p3NajOTkVc=
github.com/multiversx/mx-chain-vm-common-go v1.5.6-0.20230901130135-4d211b1a41d2/go.mod h1:uDaefuPXa9p0sb+wrUk16J0z+U324Hh894Y5oVXeVdI=
github.com/multiversx/mx-chain-vm-common-go v1.5.6-0.20230918144414-73020ec780b7 h1:MBABPvX640D6NkmuIaEhM8v/WLdSDRRIfEjilQX2NO0=
github.com/multiversx/mx-chain-vm-common-go v1.5.6-0.20230918144414-73020ec780b7/go.mod h1:VtmaxMU7FtRdTLLcLd0D01vcTm0drVYvaJ0U88ikr38=
github.com/multiversx/mx-components-big-int v1.0.0 h1:Wkr8lSzK2nDqixOrrBa47VNuqdhV1m/aJhaP1EMaiS8=
github.com/multiversx/mx-components-big-int v1.0.0/go.mod h1:maIEMgHlNE2u78JaDD0oLzri+ShgU4okHfzP3LWGdQM=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
Expand Down
22 changes: 21 additions & 1 deletion mock/world/enableEpochsHandlerStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package worldmock

import (
"github.com/multiversx/mx-chain-core-go/core"
"github.com/multiversx/mx-chain-vm-common-go/builtInFunctions"
"github.com/multiversx/mx-chain-vm-go/vmhost"
)

Expand Down Expand Up @@ -64,7 +65,26 @@ func EnableEpochsHandlerStubAllFlags() *EnableEpochsHandlerStub {
flag == vmhost.FailExecutionOnEveryAPIErrorFlag ||
flag == vmhost.RefactorContextFlag ||
flag == vmhost.DisableExecByCallerFlag ||
flag == vmhost.CheckExecuteOnReadOnlyFlag
flag == vmhost.CheckExecuteOnReadOnlyFlag ||
flag == builtInFunctions.CheckCorrectTokenIDForTransferRoleFlag ||
flag == builtInFunctions.ESDTTransferRoleFlag ||
flag == builtInFunctions.GlobalMintBurnFlag ||
flag == builtInFunctions.TransferToMetaFlag ||
flag == builtInFunctions.CheckFrozenCollectionFlag ||
flag == builtInFunctions.FixAsyncCallbackCheckFlag ||
flag == builtInFunctions.ESDTNFTImprovementV1Flag ||
flag == builtInFunctions.SaveToSystemAccountFlag ||
flag == builtInFunctions.ValueLengthCheckFlag ||
flag == builtInFunctions.CheckTransferFlag ||
flag == builtInFunctions.CheckFunctionArgumentFlag ||
flag == builtInFunctions.FixOldTokenLiquidityFlag ||
flag == builtInFunctions.AlwaysSaveTokenMetaDataFlag ||
flag == builtInFunctions.SetGuardianFlag ||
flag == builtInFunctions.WipeSingleNFTLiquidityDecreaseFlag ||
flag == builtInFunctions.ConsistentTokensValuesLengthCheckFlag ||
flag == builtInFunctions.ChangeUsernameFlag ||
flag == builtInFunctions.AutoBalanceDataTriesFlag ||
flag == builtInFunctions.ScToScLogEventFlag
},
}
}
Expand Down

0 comments on commit afab2d8

Please sign in to comment.