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:
commit
6d089efeac
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user