Repository navigation
fix and docs: resolve issues #71, #70, #67, #61 - #215
Merged
Merged
Conversation
|
@Queenode Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request addresses and resolves all 4 issues assigned to @Queenode:
Detailed Changes
1. Cover
get_tokenview (Closes #71)get_token_returns_constructor_tokentest incontracts/tip-splitter/src/test.rsmirroring the existingget_admin_returns_constructor_admintest to verifyget_token()matches the token address supplied at constructor initialization.2. Cover tipper who is also a recipient (Closes #70)
tip_tipper_holding_non_final_share_preserves_all_balancescovering the tipper holding a non-final split share in a jar.tip_tipper_holding_final_share_preserves_all_balancescovering the tipper holding the final split share.3. Extend storage lifetime on jar creation (Closes #67)
create_jarincontracts/tip-splitter/src/lib.rsto callenv.storage().persistent().extend_ttl(&key, JAR_TTL_THRESHOLD, JAR_TTL_LEDGERS)upon creating a new jar entry, aligning it with all other operations (update_splits,transfer_jar_ownership,tip,get_jar).JAR_TTL_THRESHOLDandJAR_TTL_LEDGERS.freshly_created_jar_extends_ttl_and_survives_ledger_advanceasserting that a freshly created jar survives ledger advances past network default lifetimes, and updatedtouched_jar_survives_a_ledger_advance_that_archives_an_idle_oneto match the new initial TTL.4. Add Troubleshooting guide for common invoke failures (Closes #61)
## Troubleshootingsection todocs/CONTRACT.mddescribing common invoke and client errors that do not map to contract error codes:wasm32-unknown-unknown) and fix (rustup target add wasm32-unknown-unknown).HostError: Error(Contract, #1)/op_no_trustline) and fix (establishing SAC trustline or claiming held escrow).HostError: Error(Storage, MissingValue)/txNO_ACCOUNT) and fix (funding with reserve via Friendbot or transfer).InvalidJarId/JarNotFound) and fix (verifying format with leading@and checking registration).Closes #71
Closes #70
Closes #67
Closes #61