From 7d8fead1fd49843cb2dd6fa444387f4e29b9d838 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 23 Jul 2020 16:55:40 +0300 Subject: [PATCH] native: change onPersist return type to Void --- pkg/core/native/native_nep5.go | 2 +- pkg/core/native/policy.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/core/native/native_nep5.go b/pkg/core/native/native_nep5.go index 308d199e3..f7dc87aed 100644 --- a/pkg/core/native/native_nep5.go +++ b/pkg/core/native/native_nep5.go @@ -78,7 +78,7 @@ func newNEP5Native(name string) *nep5TokenNative { md = newMethodAndPrice(n.Transfer, 8000000, smartcontract.AllowModifyStates) n.AddMethod(md, desc, false) - desc = newDescriptor("onPersist", smartcontract.BoolType) + desc = newDescriptor("onPersist", smartcontract.VoidType) md = newMethodAndPrice(getOnPersistWrapper(n.OnPersist), 0, smartcontract.AllowModifyStates) n.AddMethod(md, desc, false) diff --git a/pkg/core/native/policy.go b/pkg/core/native/policy.go index 87c198c6d..e80dc3264 100644 --- a/pkg/core/native/policy.go +++ b/pkg/core/native/policy.go @@ -105,7 +105,7 @@ func newPolicy() *Policy { md = newMethodAndPrice(p.unblockAccount, 3000000, smartcontract.NoneFlag) p.AddMethod(md, desc, false) - desc = newDescriptor("onPersist", smartcontract.BoolType) + desc = newDescriptor("onPersist", smartcontract.VoidType) md = newMethodAndPrice(getOnPersistWrapper(p.OnPersist), 0, smartcontract.AllowModifyStates) p.AddMethod(md, desc, false) return p