From 81adb7ce832ce711006c84984e1f2491dc6debb9 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 19 Jun 2020 11:09:38 +0300 Subject: [PATCH] core: set price getter for native contract persist routine --- pkg/core/blockchain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 1d4c6de18..19531bca9 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -565,6 +565,7 @@ func (bc *Blockchain) storeBlock(block *block.Block) error { systemInterop := bc.newInteropContext(trigger.System, cache, block, nil) v := SpawnVM(systemInterop) v.LoadScriptWithFlags(bc.contracts.GetPersistScript(), smartcontract.AllowModifyStates|smartcontract.AllowCall) + v.SetPriceGetter(getPrice) if err := v.Run(); err != nil { return errors.Wrap(err, "can't persist native contracts") } else if _, err := systemInterop.DAO.Persist(); err != nil {