Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(protocol): Use safeMint with ERC721 #15636

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading