context: define a constant for transaction context type
This commit is contained in:
parent
6be9367f03
commit
541d4b49e1
4 changed files with 10 additions and 4 deletions
|
@ -102,7 +102,7 @@ func TestParameterContext_AddSignatureMultisig(t *testing.T) {
|
|||
},
|
||||
}
|
||||
tx := getContractTx(ctr.ScriptHash())
|
||||
c := NewParameterContext("Neo.Network.P2P.Payloads.Transaction", netmode.UnitTestNet, tx)
|
||||
c := NewParameterContext(TransactionType, netmode.UnitTestNet, tx)
|
||||
priv, err := keys.NewPrivateKey()
|
||||
require.NoError(t, err)
|
||||
sig := priv.SignHashable(uint32(c.Network), tx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue