diff --git a/dot/parachain/runtime/instance.go b/dot/parachain/runtime/instance.go index ea15cb4e2e..6e02a5ace2 100644 --- a/dot/parachain/runtime/instance.go +++ b/dot/parachain/runtime/instance.go @@ -10,7 +10,7 @@ import ( parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types" "github.com/ChainSafe/gossamer/lib/common" - runtimewasmer "github.com/ChainSafe/gossamer/lib/runtime/wasmer" + runtimewazero "github.com/ChainSafe/gossamer/lib/runtime/wazero" "github.com/ChainSafe/gossamer/pkg/scale" ) @@ -49,15 +49,15 @@ type ValidationParameters struct { RelayParentStorageRoot common.Hash } -// Instance is a wrapper around the wasmer runtime instance. +// Instance is a wrapper around the wazero runtime instance. type Instance struct { - *runtimewasmer.Instance + *runtimewazero.Instance } func SetupVM(code []byte) (*Instance, error) { - cfg := runtimewasmer.Config{} + cfg := runtimewazero.Config{} - instance, err := runtimewasmer.NewInstance(code, cfg) + instance, err := runtimewazero.NewInstance(code, cfg) if err != nil { return nil, fmt.Errorf("creating instance: %w", err) } diff --git a/lib/runtime/constants.go b/lib/runtime/constants.go index 30e2148324..494224269a 100644 --- a/lib/runtime/constants.go +++ b/lib/runtime/constants.go @@ -75,7 +75,7 @@ const ( // ParachainHostValidationCodeByHash returns parachain host's validation code by hash ParachainHostValidationCodeByHash = "ParachainHost_validation_code_by_hash" // ParachainHostValidators is the runtime API call ParachainHost_validators - ParachainHostValidators = "ParachainHost_validators" + ParachainHostValidators = "ParachainHost_validators" //nolint // ParachainHostValidatorGroups is the runtime API call ParachainHost_validator_groups ParachainHostValidatorGroups = "ParachainHost_validator_groups" // ParachainHostAvailabilityCores is the runtime API call ParachainHost_availability_cores