Skip to content
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

Fix contract #5

Merged
merged 3 commits into from
Sep 17, 2024
Merged

Fix contract #5

merged 3 commits into from
Sep 17, 2024

Conversation

PiVortex
Copy link

@PiVortex PiVortex commented Sep 3, 2024

  • Fix deposit amount, previously it was a factor of 10 smaller
  • Fix tests
  • Update sdk version to 5.3.0
  • Add extra test to check can't deploy with less than required.

Unsure why creating the subaccount and deploying code to it costs a little more than expected (calculated storage cost 1.54905 NEAR, it needs 0.00198 NEAR more). This additional cost is likley the storage used up on init. I just required 0.1 extra NEAR.

@PiVortex
Copy link
Author

PiVortex commented Sep 3, 2024

hello @race-of-sloths

@PiVortex
Copy link
Author

PiVortex commented Sep 3, 2024

In the tests I changed it to deposit just over what is required and did enough test checking that it fails depositing just under what is required.

Maybe me adding this isn't the best idea since it makes it a little harder to fork

@gagdiez gagdiez merged commit 4503365 into main Sep 17, 2024
2 checks passed
@gagdiez gagdiez deleted the fix-deposit branch September 17, 2024 14:57
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.

2 participants