context: support Neo.Network.P2P.Payloads.Transaction type

C# now uses this one, so use it by default, but also accept old one.
This commit is contained in:
Roman Khimov 2021-07-23 11:33:51 +03:00
parent ad35db66b5
commit 59b4377f90
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ func InitAndSave(net netmode.Magic, tx *transaction.Transaction, acc *wallet.Acc
priv := acc.PrivateKey()
pub := priv.PublicKey()
sign := priv.SignHashable(uint32(net), tx)
scCtx := context.NewParameterContext("Neo.Core.ContractTransaction", net, tx)
scCtx := context.NewParameterContext("Neo.Network.P2P.Payloads.Transaction", net, tx)
h, err := address.StringToUint160(acc.Address)
if err != nil {
return fmt.Errorf("invalid address: %s", acc.Address)