Skip to content

Commit

Permalink
fix(protocol): Use safeMint with ERC721 (#15636)
Browse files Browse the repository at this point in the history
Co-authored-by: Keszey Dániel <keszeyd@MacBook-Pro.local>
  • Loading branch information
adaki2004 and Keszey Dániel authored Feb 2, 2024
1 parent a62a137 commit c12e2d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/protocol/contracts/bridge/Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/tokenvault/BridgedERC721.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ contract BridgedERC721 is EssentialContract, ERC721Upgradeable {
whenNotPaused
onlyFromNamed("erc721_vault")
{
_mint(account, tokenId);
_safeMint(account, tokenId);
}

/// @dev Burns tokens.
Expand Down

0 comments on commit c12e2d7

Please sign in to comment.