diff --git a/packages/vm/core/governance/governanceimpl/statecontroller.go b/packages/vm/core/governance/governanceimpl/statecontroller.go index db7516abf4..3ce60cfd0d 100644 --- a/packages/vm/core/governance/governanceimpl/statecontroller.go +++ b/packages/vm/core/governance/governanceimpl/statecontroller.go @@ -51,7 +51,7 @@ func addAllowedStateControllerAddress(ctx isc.Sandbox) dict.Dict { ctx.RequireCallerIsChainOwner() addr := ctx.Params().MustGetAddress(governance.ParamStateControllerAddress) amap := collections.NewMap(ctx.State(), governance.StateVarAllowedStateControllerAddresses) - amap.SetAt(isc.AddressToBytes(addr), []byte{0xFF}) + amap.SetAt(isc.AddressToBytes(addr), []byte{0x01}) return nil } diff --git a/packages/vm/core/root/rootimpl/impl.go b/packages/vm/core/root/rootimpl/impl.go index ecfae0e798..cf1d00deca 100644 --- a/packages/vm/core/root/rootimpl/impl.go +++ b/packages/vm/core/root/rootimpl/impl.go @@ -114,7 +114,7 @@ func deployContract(ctx isc.Sandbox) dict.Dict { func grantDeployPermission(ctx isc.Sandbox) dict.Dict { ctx.RequireCallerIsChainOwner() deployer := ctx.Params().MustGetAgentID(root.ParamDeployer) - collections.NewMap(ctx.State(), root.StateVarDeployPermissions).SetAt(deployer.Bytes(), []byte{0xFF}) + collections.NewMap(ctx.State(), root.StateVarDeployPermissions).SetAt(deployer.Bytes(), []byte{0x01}) eventGrant(ctx, deployer) return nil }