mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
use compute env and compute consumer address
This commit is contained in:
parent
5790ffd122
commit
b50c46e1f4
@ -45,7 +45,6 @@ import {
|
||||
getAlgorithmsForAsset,
|
||||
getQuerryString,
|
||||
getValidUntilTime,
|
||||
getComputeEnviromen,
|
||||
getComputeEnviroment
|
||||
} from '@utils/compute'
|
||||
import AssetSelection, {
|
||||
@ -266,6 +265,9 @@ export default function Compute({
|
||||
return
|
||||
}
|
||||
|
||||
const validUntil = getValidUntilTime()
|
||||
const computeEnv = await getComputeEnviroment(asset)
|
||||
|
||||
if (!isOwned) {
|
||||
try {
|
||||
if (!hasDatatoken && asset?.accessDetails.type === 'dynamic') {
|
||||
@ -282,7 +284,15 @@ export default function Compute({
|
||||
}
|
||||
}
|
||||
LoggerInstance.log('dataset orderPriceAndFees: ', orderPriceAndFees)
|
||||
const orderTx = await order(web3, asset, orderPriceAndFees, accountId)
|
||||
const orderTx = await order(
|
||||
web3,
|
||||
asset,
|
||||
orderPriceAndFees,
|
||||
accountId,
|
||||
computeEnv.id,
|
||||
validUntil,
|
||||
computeEnv.consumerAddress
|
||||
)
|
||||
LoggerInstance.log(
|
||||
'[compute] Order dataset: ',
|
||||
orderTx.transactionHash
|
||||
@ -322,7 +332,10 @@ export default function Compute({
|
||||
web3,
|
||||
selectedAlgorithmAsset,
|
||||
orderAlgorithmPriceAndFees,
|
||||
accountId
|
||||
accountId,
|
||||
computeEnv.id,
|
||||
validUntil,
|
||||
computeEnv.consumerAddress
|
||||
)
|
||||
|
||||
LoggerInstance.log(
|
||||
|
Loading…
x
Reference in New Issue
Block a user