diff --git a/packages/protocol/contracts/bridge/Bridge.sol b/packages/protocol/contracts/bridge/Bridge.sol index d3feffbb476..04ff534e526 100644 --- a/packages/protocol/contracts/bridge/Bridge.sol +++ b/packages/protocol/contracts/bridge/Bridge.sol @@ -221,7 +221,7 @@ contract Bridge is EssentialContract, IBridge { status = Status.DONE; refundAmount = message.value; } else { - // Use the specified message gas limit if called by the owner, else + // Use the specified message gas limit if not called by the owner, else // use remaining gas uint256 gasLimit = msg.sender == message.owner ? gasleft() : message.gasLimit; diff --git a/packages/protocol/contracts/tokenvault/BridgedERC721.sol b/packages/protocol/contracts/tokenvault/BridgedERC721.sol index 880ff200495..99cc2a552b5 100644 --- a/packages/protocol/contracts/tokenvault/BridgedERC721.sol +++ b/packages/protocol/contracts/tokenvault/BridgedERC721.sol @@ -71,7 +71,7 @@ contract BridgedERC721 is EssentialContract, ERC721Upgradeable { whenNotPaused onlyFromNamed("erc721_vault") { - _mint(account, tokenId); + _safeMint(account, tokenId); } /// @dev Burns tokens.