1
0
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:
Pedro Gutiérrez 2019-03-15 15:29:47 +01:00 committed by Pedro Gutiérrez
parent cf99c9ff64
commit b821d6c6e0
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

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