1
0
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:
Sebastian Gerske 2018-09-21 16:12:04 +02:00
parent a0ef3caa73
commit e7972d9ad2

View File

@ -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 }
)