-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First pass at adding profile images. #162
Conversation
@zomglings unsure why the contract fails in the build. I tried a couple different variants of the ITerminus import path. All of them worked locally, but none in the build. Ideas? I don't think we are using web3 anywhere else. Could it be issue with web3 submodule? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions.
…dding setTokenImages method (also batched).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
On second thought, no need to batch the add image and update image methods. If we do need to update how the contract works, we can just deploy new Ballers contracts (e.g. NovaLeagueBallers, BaseLeagueBallers, etc.).
src/Players.sol
Outdated
adminTerminus = _adminTerminus; | ||
adminPoolID = _adminPoolID; | ||
|
||
ProfileImages[0] = "https://s3.amazonaws.com/static.fullcount.xyz/Beer_League_Ballers/p0.png"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CDN URL (https://static.fullcount.xyz/...
)
require(terminus.balanceOf(msg.sender, adminPoolID) > 0, "BeerLeagueBallers._enforceIsAdmin: not admin"); | ||
} | ||
|
||
function addProfileImage(string memory newImage) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're probably going to be adding multiple images at once, this seems like it should be a batch method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We decided not to do this.
NumProfileImages++; | ||
} | ||
|
||
function updateProfileImage(uint256 index, string memory newImage) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also probably be a batch method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We decided not to do this.
No description provided.