Skip to content

Latest commit

 

History

History
261 lines (241 loc) · 8.94 KB

RSKAddrValidator.md

File metadata and controls

261 lines (241 loc) · 8.94 KB

RSKAddrValidator.sol

View Source: contracts/rsk/RSKAddrValidator.sol

RSKAddrValidator contract

Functions


checkPKNotZero

function checkPKNotZero(address addr) internal pure
returns(bool)

Arguments

Name Type Description
addr address
Source Code
function checkPKNotZero(address addr) internal pure returns (bool) {
        return (addr != 0xdcc703c0E500B653Ca82273B7BFAd8045D85a470 && addr != address(0));
    }

safeEquals

function safeEquals(address addr1, address addr2) internal pure
returns(bool)

Arguments

Name Type Description
addr1 address
addr2 address
Source Code
function safeEquals(address addr1, address addr2) internal pure returns (bool) {
        return (addr1 == addr2 &&
            addr1 != 0xdcc703c0E500B653Ca82273B7BFAd8045D85a470 &&
            addr1 != address(0));
    }

Contracts