-
Notifications
You must be signed in to change notification settings - Fork 480
Unify fallible and non fallible instantiate methods #1591
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
3758e09
Remove fallible create_builder.rs methods
ascjones cdcc502
WIP experiment
ascjones 6f59077
InstantiateResult blanket impl for T and Result
ascjones baecba9
Introduce ContractRef type parameter
ascjones af69cd5
Fix up env access
ascjones e134a8c
WIP...
ascjones 115dd9f
Make it compile
ascjones 718d475
Add ContractStorage parameter
ascjones bb5042e
Remove commented out instantiate_fallible_contract
ascjones 528cfe0
Convert to env Error in helper
ascjones 7b4c5e9
Return Decode errors in case of invalid Result first byte
ascjones 4de38f5
Fix impls::instantiate_contract
ascjones 09545fe
Remove ContractStorage generic parameter
ascjones 2ef624d
Fix env access
ascjones 02f97b1
Use generated constructor ref, introduces update_selector
ascjones 39b45b0
Fix e2e
ascjones dc2f7bb
Remove commented out code
ascjones 39ab13f
Typos
ascjones 60e7e90
Clippy
ascjones 43c2fe0
Rename some instantiate_fallible
ascjones bf3055c
Restore `returns` method
ascjones 322ab26
Remove ContractReference Result impl
ascjones e61a12b
WIP implementing ConstructorReturnType
ascjones 62052a6
Reorder ContractRef parameter, move ContractRef and ContractEnv trait…
ascjones 2ed5093
Fmt and fix
ascjones df4a067
Remove E param from build_create
ascjones 0e69431
Fix up build_create
ascjones e8feae9
Fix up e2e creat builder
ascjones 2265258
Implement ContstructorReturnType for the storage_ident
ascjones 10d7268
Fmt
ascjones ea65c47
Fix envaccess test
ascjones 258c27b
Fully qualify Result in macro
ascjones 08dc991
More fully qualify Result in macro
ascjones 4be979d
Fix up build_create examples
ascjones 0994c67
Add test for different combos of Self and struct name
ascjones f1f4930
Fix ui test
ascjones 12f51dc
Fmt
ascjones 1bceab3
Remove unused assoc type
ascjones 8e0a9ef
Change error fn to return Option<Result>
ascjones aea1238
Remove commented out code
ascjones 163fa6b
Fmt
ascjones 1dd00d6
ConstructorReturnType comments
ascjones 327967d
Fix `contract-ref` E2E test compilation
HCastano 0bb7a8d
Fix up return types after merge
ascjones 75ab4e6
Fmt
ascjones 77a5bab
Clippy
ascjones 7d03708
Fix create_builder tests
ascjones ca47caf
Fix cross-contract compile test
HCastano 2cc8a22
Clean up some comments
HCastano fa0436a
Remove outdated doc
HCastano 016b102
Update comment
HCastano 9655072
Another comment fix
HCastano 7aecb5f
Wrap long line
HCastano 6f92033
Remove TODO
HCastano 498c640
Bump `contract-metadata`
HCastano 8e60ec2
Fix `CreateBuilder` compilation
HCastano a9c0223
Fix one of the doc tests
HCastano db1a808
Clean up doc tests a bit
HCastano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
WIP experiment
- Loading branch information
There are no files selected for viewing
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
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
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.