add getget and setter for relayerURI in Bucket.sol

This commit is contained in:
Andrea Franz 2020-05-29 13:08:34 +02:00
parent 083398f82b
commit eac7bac8bc
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,8 @@ abstract contract Bucket {
bytes32 constant EIP712DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
bytes32 DOMAIN_SEPARATOR;
string _relayerURI;
struct Redeemable {
address recipient;
bytes32 code;
@ -146,4 +148,12 @@ abstract contract Bucket {
return ecrecover(digest, v, r, s);
}
function setRelayerURI(string calldata uri) external onlyOwner {
_relayerURI = uri;
}
function relayerURI() public view returns (string memory) {
return _relayerURI;
}
}