Skip to content

Commit

Permalink
Add forgotten virtual keywords (#86)
Browse files Browse the repository at this point in the history
* Add forgotten virtual keywords

* Push version
  • Loading branch information
cxkoda authored Feb 26, 2023
1 parent 3e9dfd6 commit 5ecae85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions contracts/erc721/OperatorFilterOS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ abstract contract OperatorFilterOS is ERC721ACommon, DefaultOperatorFilterer {

function setApprovalForAll(address operator, bool approved)
public
virtual
override
onlyAllowedOperatorApproval(operator)
{
Expand All @@ -43,6 +44,7 @@ abstract contract OperatorFilterOS is ERC721ACommon, DefaultOperatorFilterer {
function approve(address operator, uint256 tokenId)
public
payable
virtual
override
onlyAllowedOperatorApproval(operator)
{
Expand All @@ -53,15 +55,15 @@ abstract contract OperatorFilterOS is ERC721ACommon, DefaultOperatorFilterer {
address from,
address to,
uint256 tokenId
) public payable override onlyAllowedOperator(from) {
) public payable virtual override onlyAllowedOperator(from) {
super.transferFrom(from, to, tokenId);
}

function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public payable override onlyAllowedOperator(from) {
) public payable virtual override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId);
}

Expand All @@ -70,7 +72,7 @@ abstract contract OperatorFilterOS is ERC721ACommon, DefaultOperatorFilterer {
address to,
uint256 tokenId,
bytes memory data
) public payable override onlyAllowedOperator(from) {
) public payable virtual override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId, data);
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@divergencetech/ethier",
"version": "0.54.0",
"version": "0.54.1",
"description": "Golang and Solidity SDK to make Ethereum development ethier",
"main": "\"\"",
"scripts": {
Expand Down

0 comments on commit 5ecae85

Please sign in to comment.