CEB-02
This commit is contained in:
parent
b636dba965
commit
d9f7889e06
@ -48,7 +48,7 @@ abstract contract BEBase is ERC721, AccessControlEnumerable, ERC721Enumerable, O
|
||||
override
|
||||
returns (bool)
|
||||
{
|
||||
if (approvalWhitelists[operator] == true) {
|
||||
if (approvalWhitelists[operator]) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ abstract contract BEBase is ERC721, AccessControlEnumerable, ERC721Enumerable, O
|
||||
* @dev Allow operation to reduce gas fee.
|
||||
*/
|
||||
function addApprovalWhitelist(address proxy) public onlyOwner {
|
||||
require(approvalWhitelists[proxy] == false, "Invalid proxy address");
|
||||
require(!approvalWhitelists[proxy], "Invalid proxy address");
|
||||
|
||||
approvalWhitelists[proxy] = true;
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ contract Marketplace is Ownable, HasSignature {
|
||||
onlyOwner
|
||||
{
|
||||
for (uint256 i = 0; i < _paymentTokens.length; i++) {
|
||||
if (paymentTokens[_paymentTokens[i]] == true) {
|
||||
if (paymentTokens[_paymentTokens[i]]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ contract Marketplace is Ownable, HasSignature {
|
||||
// uint256[3] [token_id,price,salt_nonce]
|
||||
// bytes seller_signature
|
||||
require(
|
||||
paymentTokens[addresses[2]] == true,
|
||||
paymentTokens[addresses[2]],
|
||||
"Marketplace: invalid payment method"
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user