mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
Remove not needed awaits.
This commit is contained in:
parent
cf99c9ff64
commit
b821d6c6e0
@ -81,7 +81,7 @@ export default class OceanAgreementsConditions {
|
|||||||
const {escrowReward, accessSecretStoreCondition, lockRewardCondition} = this.keeper.conditions
|
const {escrowReward, accessSecretStoreCondition, lockRewardCondition} = this.keeper.conditions
|
||||||
|
|
||||||
const conditionIdAccess = await accessSecretStoreCondition.generateIdHash(agreementId, did, consumer)
|
const conditionIdAccess = await accessSecretStoreCondition.generateIdHash(agreementId, did, consumer)
|
||||||
const conditionIdLock = await lockRewardCondition.generateIdHash(agreementId, await escrowReward.getAddress(), amount)
|
const conditionIdLock = await lockRewardCondition.generateIdHash(agreementId, escrowReward.getAddress(), amount)
|
||||||
|
|
||||||
const receipt = await escrowReward.fulfill(
|
const receipt = await escrowReward.fulfill(
|
||||||
agreementId,
|
agreementId,
|
||||||
|
@ -238,8 +238,8 @@ export default class OceanAssets {
|
|||||||
|
|
||||||
const keeper = await Keeper.getInstance()
|
const keeper = await Keeper.getInstance()
|
||||||
const templateName = ddo.findServiceByType("Access").serviceAgreementTemplate.contractName
|
const templateName = ddo.findServiceByType("Access").serviceAgreementTemplate.contractName
|
||||||
const template = await keeper.getTemplateByName(templateName)
|
const template = keeper.getTemplateByName(templateName)
|
||||||
const accessCondition = await keeper.conditions.accessSecretStoreCondition
|
const accessCondition = keeper.conditions.accessSecretStoreCondition
|
||||||
|
|
||||||
const paymentFlow = new Promise((resolve, reject) => {
|
const paymentFlow = new Promise((resolve, reject) => {
|
||||||
template
|
template
|
||||||
|
Loading…
Reference in New Issue
Block a user