Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Proof-of-concept ERC721 Bridge Implementation #325

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
azf20 committed Apr 6, 2021
commit 881d0ca69960a757fb27ddc0dbc33d3415704757
12 changes: 7 additions & 5 deletions test/contracts/OVM/bridge/assets/OVM_ERC721Gateway.spec.ts
Original file line number Diff line number Diff line change
@@ -208,15 +208,17 @@ describe('OVM_ERC721Gateway', () => {
const initialTokenOwner = await ERC721.ownerOf(depositTokenId)

// depositer safeTransfers a token to the gateway, which leads to a call onERC721Received which initiates a deposit
await expect(ERC721['safeTransferFrom(address,address,uint256)'](initialTokenOwner, OVM_ERC721Gateway.address, depositTokenId)).to.emit(
OVM_ERC721Gateway,
'DepositInitiated'
)
await expect(
ERC721['safeTransferFrom(address,address,uint256)'](
initialTokenOwner,
OVM_ERC721Gateway.address,
depositTokenId
)
).to.emit(OVM_ERC721Gateway, 'DepositInitiated')

// expect the gateway to be the new owner of the token
const newTokenOwner = await ERC721.ownerOf(depositTokenId)
expect(newTokenOwner).to.equal(OVM_ERC721Gateway.address)

})
})
})