mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
parent
c5e39dfabf
commit
1cf1fe5d74
32 changed files with 320 additions and 304 deletions
|
@ -18,7 +18,6 @@ import (
|
|||
"github.com/nspcc-dev/neo-go/pkg/core/native"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/storage"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
|
||||
"github.com/nspcc-dev/neo-go/pkg/crypto/hash"
|
||||
"github.com/nspcc-dev/neo-go/pkg/io"
|
||||
"github.com/nspcc-dev/neo-go/pkg/smartcontract"
|
||||
"github.com/nspcc-dev/neo-go/pkg/vm/emit"
|
||||
|
@ -75,18 +74,13 @@ func main() {
|
|||
handleError("can't tranfser GAS", err)
|
||||
lastBlock = addBlock(bc, lastBlock, valScript, txMoveNeo, txMoveGas)
|
||||
|
||||
tx, avm, err := testchain.NewDeployTx("DumpContract", strings.NewReader(contract))
|
||||
tx, contractHash, err := testchain.NewDeployTx("DumpContract", h, strings.NewReader(contract))
|
||||
handleError("can't create deploy tx", err)
|
||||
tx.Signers = []transaction.Signer{{
|
||||
Account: h,
|
||||
Scopes: transaction.CalledByEntry,
|
||||
}}
|
||||
tx.NetworkFee = 10_000_000
|
||||
tx.ValidUntilBlock = bc.BlockHeight() + 1
|
||||
handleError("can't sign deploy tx", acc.SignTx(tx))
|
||||
lastBlock = addBlock(bc, lastBlock, valScript, tx)
|
||||
|
||||
contractHash := hash.Hash160(avm)
|
||||
key := make([]byte, 10)
|
||||
value := make([]byte, 10)
|
||||
nonce := uint32(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue