ethereum/nft-bridge: Transfer before burn

This is consistent with the token bridge
This commit is contained in:
Csongor Kiss 2022-03-07 08:20:33 +00:00 committed by Csongor Kiss
parent 6b6d172262
commit f22dfcece3
1 changed files with 2 additions and 3 deletions

View File

@ -72,9 +72,8 @@ contract NFTBridge is NFTBridgeGovernance {
}
}
if (tokenChain == chainId()) {
IERC721(token).safeTransferFrom(msg.sender, address(this), tokenID);
} else {
IERC721(token).safeTransferFrom(msg.sender, address(this), tokenID);
if (tokenChain != chainId()) {
NFTImplementation(token).burn(tokenID);
}