Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ethereum
Skin Z
Commits
f63473fd
Commit
f63473fd
authored
Sep 09, 2021
by
Kegan
Browse files
allow owner to control claims cost
parent
07e6f43a
Changes
1
Hide whitespace changes
Inline
Side-by-side
contracts/SkinZNFT.sol
View file @
f63473fd
...
...
@@ -195,6 +195,10 @@ contract SkinZNFT is ERC721Enumerable, ReentrancyGuard, Ownable {
function
disableClaims
()
public
onlyOwner
{
allow_claims
=
false
;
}
function
setClaimCost
(
uint256
amount
)
public
onlyOwner
{
nft_cost
=
amount
;
}
// NOTE: if moving from arbitrum to another blockchain, this source of randomness would need uodated!
// generate a random number (changes between arbitrum and ethereum mainnet!)
function
random
(
uint256
seed
)
internal
view
returns
(
uint256
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment