Skip to content

Commit

Permalink
debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Feb 21, 2025
1 parent f63051d commit 0c9ec8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ jobs:
ls -la "$HOME/.ocean/ocean-contracts/artifacts/"
- run: npm run build:metadata
- run: npm run test:unit:cover
- name: docker logs for unit tests
run: docker logs ocean-contracts-1
if: ${{ failure() }}
- uses: actions/upload-artifact@v4
with:
name: coverage-unit
Expand Down
11 changes: 9 additions & 2 deletions test/unit/Escrow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,16 @@ describe('Escrow payments flow', () => {
})

it('User2 makes a deposit in Escrow', async () => {
datatoken = new Datatoken(factoryOwner, await factoryOwner.getChainId())
datatoken = new Datatoken(user2, await user2.getChainId())
console.log(
`(await datatoken.balance(OCEAN, await user2.getAddress())): ${await datatoken.balance(
OCEAN,
await user2.getAddress()
)}`
)
await datatoken.approve(OCEAN, await user2.getAddress(), '1000')
await datatoken.transfer(OCEAN, await user2.getAddress(), '1000')
const tx = await datatoken.transfer(OCEAN, await user2.getAddress(), '1000')
console.log(`tx: ${tx}`)
assert((await datatoken.balance(OCEAN, await user2.getAddress())) !== '1000')
await datatoken.approve(addresses.Escrow, await user2.getAddress(), '1000')
await Escrow.deposit(OCEAN, '100')
Expand Down

0 comments on commit 0c9ec8c

Please # to comment.