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:
parent
4b7bf22ff5
commit
c71fd9f456
@ -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