Skip to content

Commit

Permalink
Fix spender.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Feb 21, 2025
1 parent 49327bc commit 5cd36a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/unit/Escrow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ describe('Escrow payments flow', () => {
datatoken = new Datatoken(user2, await user2.getChainId())
const initialBalance = await datatoken.balance(OCEAN, await user2.getAddress())
await datatoken.approve(OCEAN, await user2.getAddress(), '1000')
const tx = await datatoken.transfer(OCEAN, await user2.getAddress(), '1000')
console.log(`tx: ${JSON.stringify(tx)}`)
await datatoken.transfer(OCEAN, await user2.getAddress(), '1000')
assert(
(await datatoken.balance(OCEAN, await user2.getAddress())) !==
`${initialBalance + 1000}`
)
await datatoken.approve(addresses.Escrow, await user2.getAddress(), '1000')
await datatoken.approve(OCEAN, addresses.Escrow, '1000')
const tx2 = await Escrow.deposit(OCEAN, '100')
console.log(`tx2: ${JSON.stringify(tx2)}`)
const funds = await Escrow.getUserFunds(await user2.getAddress(), OCEAN)
Expand Down

0 comments on commit 5cd36a9

Please # to comment.