diff --git a/pkg/morph/client/balance/balanceOf.go b/pkg/morph/client/balance/balanceOf.go index c3aec323..0eec19b7 100644 --- a/pkg/morph/client/balance/balanceOf.go +++ b/pkg/morph/client/balance/balanceOf.go @@ -19,7 +19,7 @@ func (c *Client) BalanceOf(id *owner.ID) (*big.Int, error) { invokePrm := client.TestInvokePrm{} invokePrm.SetMethod(balanceOfMethod) - invokePrm.SetArgs(h.BytesBE()) + invokePrm.SetArgs(h) prms, err := c.client.TestInvoke(invokePrm) if err != nil { diff --git a/pkg/morph/client/balance/burn.go b/pkg/morph/client/balance/burn.go index b86807c6..7d148a4f 100644 --- a/pkg/morph/client/balance/burn.go +++ b/pkg/morph/client/balance/burn.go @@ -33,7 +33,7 @@ func (b *BurnPrm) SetID(id []byte) { func (c *Client) Burn(p BurnPrm) error { prm := client.InvokePrm{} prm.SetMethod(burnMethod) - prm.SetArgs(p.to.BytesBE(), p.amount, p.id) + prm.SetArgs(p.to, p.amount, p.id) prm.InvokePrmOptional = p.InvokePrmOptional return c.client.Invoke(prm) diff --git a/pkg/morph/client/balance/lock.go b/pkg/morph/client/balance/lock.go index 34042c10..1ef31cbf 100644 --- a/pkg/morph/client/balance/lock.go +++ b/pkg/morph/client/balance/lock.go @@ -45,7 +45,7 @@ func (l *LockPrm) SetDueEpoch(dueEpoch int64) { func (c *Client) Lock(p LockPrm) error { prm := client.InvokePrm{} prm.SetMethod(lockMethod) - prm.SetArgs(p.id, p.user.BytesBE(), p.lock.BytesBE(), p.amount, p.dueEpoch) + prm.SetArgs(p.id, p.user, p.lock, p.amount, p.dueEpoch) prm.InvokePrmOptional = p.InvokePrmOptional return c.client.Invoke(prm) diff --git a/pkg/morph/client/balance/mint.go b/pkg/morph/client/balance/mint.go index c7a89b50..b52727a9 100644 --- a/pkg/morph/client/balance/mint.go +++ b/pkg/morph/client/balance/mint.go @@ -33,7 +33,7 @@ func (m *MintPrm) SetID(id []byte) { func (c *Client) Mint(p MintPrm) error { prm := client.InvokePrm{} prm.SetMethod(mintMethod) - prm.SetArgs(p.to.BytesBE(), p.amount, p.id) + prm.SetArgs(p.to, p.amount, p.id) prm.InvokePrmOptional = p.InvokePrmOptional return c.client.Invoke(prm) diff --git a/pkg/morph/client/balance/transfer.go b/pkg/morph/client/balance/transfer.go index 8c9330c4..691bca2c 100644 --- a/pkg/morph/client/balance/transfer.go +++ b/pkg/morph/client/balance/transfer.go @@ -36,7 +36,7 @@ func (c *Client) TransferX(p TransferPrm) error { prm := client.InvokePrm{} prm.SetMethod(transferXMethod) - prm.SetArgs(from.BytesBE(), to.BytesBE(), p.Amount, p.Details) + prm.SetArgs(from, to, p.Amount, p.Details) prm.InvokePrmOptional = p.InvokePrmOptional err = c.client.Invoke(prm) diff --git a/pkg/morph/client/neofs/cheque.go b/pkg/morph/client/neofs/cheque.go index 96f76cd6..0e384afa 100644 --- a/pkg/morph/client/neofs/cheque.go +++ b/pkg/morph/client/neofs/cheque.go @@ -40,7 +40,7 @@ func (c *ChequePrm) SetLock(lock util.Uint160) { func (x *Client) Cheque(p ChequePrm) error { prm := client.InvokePrm{} prm.SetMethod(chequeMethod) - prm.SetArgs(p.id, p.user.BytesBE(), p.amount, p.lock.BytesBE()) + prm.SetArgs(p.id, p.user, p.amount, p.lock) prm.InvokePrmOptional = p.InvokePrmOptional return x.client.Invoke(prm)