Fix: ERC20 transfer transaction is not formed correctly

pull/1294/head
Hwee-Boon Yar 5 years ago
parent 192c63a59d
commit 12be2f869e
  1. 2
      AlphaWallet/Transfer/Controllers/TransactionConfigurator.swift

@ -127,7 +127,7 @@ class TransactionConfigurator {
do {
let function = Function(name: "transfer", parameters: [ABIType.address, ABIType.uint(bits: 256)])
//Note: be careful here with the BigUInt and BigInt, the type needs to be exact
let parameters: [Any] = [transaction.to!, BigUInt(transaction.value)]
let parameters: [Any] = [Address(address: transaction.to!), BigUInt(transaction.value)]
let encoder = ABIEncoder()
try encoder.encode(function: function, arguments: parameters)
self.configuration = TransactionConfiguration(

Loading…
Cancel
Save