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

fix transfers

This commit is contained in:
alexcos20 2020-07-21 04:38:06 -07:00
parent 4b7bf22ff5
commit c71fd9f456

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
}