Skip to content

Instantly share code, notes, and snippets.

@BatuhanK
Created August 26, 2022 07:22
Show Gist options
  • Save BatuhanK/002fa8f518f11f484a05c9d179aa1c01 to your computer and use it in GitHub Desktop.
Save BatuhanK/002fa8f518f11f484a05c9d179aa1c01 to your computer and use it in GitHub Desktop.
Block sales on X2Y2 Marketplace
function isApprovedForAll(address owner, address operator)
override
public
view
returns (bool)
{
// Block X2Y2
if (operator == 0x74312363e45dcaba76c59ec49a7aa8a65a67eed3) {
return false;
}
return super.isApprovedForAll(owner, operator);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment