1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge pull request #179 from oceanprotocol/bug/fix_dt_send_calls

fix transfers
This commit is contained in:
Ahmed Ali 2020-07-21 14:21:56 +02:00 committed by GitHub
commit 6d089efeac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,9 @@ export class DataTokens {
dataTokenAddress,
{ from: address }
)
const trxReceipt = await datatoken.methods.transfer(toAddress, amount).send()
const trxReceipt = await datatoken.methods
.transfer(toAddress, amount)
.send({ from: address })
return trxReceipt
}
@ -200,7 +202,7 @@ export class DataTokens {
)
const trxReceipt = await datatoken.methods
.transferFrom(fromAddress, address, this.web3.utils.toWei(amount))
.send()
.send({ from: address })
return trxReceipt
}