mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
fixed auth initiateAccessRequest call
This commit is contained in:
parent
a0ef3caa73
commit
e7972d9ad2
@ -89,7 +89,7 @@ export default class Ocean {
|
||||
// Allow market contract to transfer funds on the consumer's behalf
|
||||
token.contract.approve(market.address, price, { from: senderAddress, gas: 2000000 })
|
||||
// Submit the access request
|
||||
auth.initiateAccessRequest(
|
||||
auth.contract.initiateAccessRequest(
|
||||
assetId, publisherId, publicKey,
|
||||
timeout, { from: senderAddress, gas: 1000000 }
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user