core: allow to compile test contracts with yaml config

And refactored Rubl test contract (it should support NEP-17 and
onNEP17Payment).
This commit is contained in:
Anna Shaleva 2021-03-22 12:21:48 +03:00
parent ee76db9ff2
commit 0a5072a1da
9 changed files with 59 additions and 24 deletions

View file

@ -75,7 +75,7 @@ func main() {
handleError("can't tranfser GAS", err)
lastBlock = addBlock(bc, lastBlock, valScript, txMoveNeo, txMoveGas)
tx, contractHash, _, err := testchain.NewDeployTx(bc, "DumpContract", h, strings.NewReader(contract))
tx, contractHash, _, err := testchain.NewDeployTx(bc, "DumpContract", h, strings.NewReader(contract), nil)
handleError("can't create deploy tx", err)
tx.NetworkFee = 10_000_000
tx.ValidUntilBlock = bc.BlockHeight() + 1