Skip to content

Commit

Permalink
fix: revert Zoe change (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
katelynsills authored Mar 26, 2020
1 parent 105fc16 commit 9212818
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/zoe/src/zoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,8 @@ const makeZoe = (additionalEndowments = {}) => {
if (giveKeywords.includes(keyword)) {
// We cannot trust these amounts since they come directly
// from the remote issuer and so we must coerce them.
return Promise.resolve(paymentKeywordRecord[keyword])
.then(payment =>
E(purse).deposit(payment, proposal.give[keyword]),
)
return E(purse)
.deposit(paymentKeywordRecord[keyword], proposal.give[keyword])
.then(_ => amountMath.coerce(proposal.give[keyword]));
}
// If any other payments are included, they are ignored.
Expand Down

0 comments on commit 9212818

Please sign in to comment.