diff --git a/Trust/Payment/SendViewController.swift b/Trust/Payment/SendViewController.swift index f4841ea72..1af4e0fad 100644 --- a/Trust/Payment/SendViewController.swift +++ b/Trust/Payment/SendViewController.swift @@ -112,9 +112,15 @@ class SendViewController: FormViewController { } func sign(address: Address, nonce: Int64 = 0, amount: Int64) { + + let tempAmount = GethNewBigInt(amount)! + + let amount = GethNewBigInt(amount)! + amount.setBytes(tempAmount.getBytes()) + let config = Config() let res = keystore.signTransaction( - amount: GethNewBigInt(amount), + amount: amount, account: account, address: address, nonce: nonce,