We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We currently represent regions as uint256 , which leads to a loss of precision in storing GPS.
uint256
Store the regions as an nested struct , Pixel.
Pixel
struct Coordinate { uint256 lat; uint256 long; } struct Pixel { Coordinate a; Coordinate b; Coordinate c; Coordinate d; }
This will change the mint function signature to :
mint
function mint(Pixel[] memory region, uint256 rioAmount)
[[3026662684114933,503277661947526],[30271123442967948,503277661947526],[30271123442967948,5033046415584378],[3026662684114933,5033046415584378]]
The text was updated successfully, but these errors were encountered:
joshualyguessennd
No branches or pull requests
Problem
We currently represent regions as
uint256
, which leads to a loss of precision in storing GPS.Solution
Store the regions as an nested struct ,
Pixel
.This will change the
mint
function signature to :Acceptance Criteria
Sample Pixel
The text was updated successfully, but these errors were encountered: