Skip to content

Update ChainmonstersRewards contract to allow reward metadata updates#5

Draft
maggo wants to merge 2 commits into
wombat-tech:masterfrom
maggo:update/updateable-rewards-metadata
Draft

Update ChainmonstersRewards contract to allow reward metadata updates#5
maggo wants to merge 2 commits into
wombat-tech:masterfrom
maggo:update/updateable-rewards-metadata

Conversation

@maggo

@maggo maggo commented Aug 12, 2021

Copy link
Copy Markdown
Contributor
  • Adds pub fun updateRewardMetadata(rewardID: UInt32, metadata: String) on the Admin resource
  • Changes pub let metadata: String to pub var metadata: String and adds access(contract) fun setMetadata(metadata: String) on the Reward to make the metadata updateable
  • Adds update_reward_metadata.cdc transaction as an example

Also converted all indentation to spaces and removed trailing whitespace for readability ;)

For better diff:
https://github.com/bsidegames/chainmonsters-smart-contracts/pull/5/files?w=1

@maggo maggo marked this pull request as draft August 30, 2021 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant