-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Contract input set estimation #628
Merged
Merged
Changes from 31 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
a66c56f
test receipt
Salka1988 1ef189c
add set_contracts_automatic
Salka1988 1599c60
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 ba7d747
merge set_contracts_automatic and estimate_tx_dependencies
Salka1988 37d0368
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 5e69140
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 13ae5b5
add multicall test for id estimation
Salka1988 8999690
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 741d22c
bump fuel-core
Salka1988 5631594
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 3718a8a
add fix
Salka1988 0b5ed00
add fix
Salka1988 82e13f0
add fmt
Salka1988 3320e5b
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 3e624f2
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 51b65b2
update fuel-core
Salka1988 8cb94fe
Merge branch 'Salka1988/contract_set_estimation' of github.com:FuelLa…
Salka1988 2e2e96e
fix tests
Salka1988 eb98122
change CI
Salka1988 9e0260c
add fmt
Salka1988 8d84551
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 347cfa4
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 8929017
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 49a5778
change FUEL_CORE_VERSION in CI
Salka1988 75f7a06
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 210d312
add call that does not need contract id
Salka1988 ddebf7a
Merge remote-tracking branch 'origin/Salka1988/contract_set_estimatio…
Salka1988 cb25b27
add fix
Salka1988 53777c8
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 47b9b21
add fix
Salka1988 ae51748
add fixes
Salka1988 249857b
add error message
Salka1988 c72039b
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 8a236ac
Merge branch 'master' into Salka1988/contract_set_estimation
Salka1988 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
There are no files selected for viewing
This file contains 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 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 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 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.
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 error here will be very cryptic when returned to the user.
The user will be trying to
estimate_tx_dependencies
, but if it is anError::RevertTransactionError
and for some weird reason that's out of our control,ContractCall::find_contract_not_in_inputs
returnsNone
, theErr
here will be very hard to understand.So we should return this
Err
with a string saying something like"Couldn't estimate tx dependencies because we couldn't find the missing contract input"
.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.
If~~ContractCall::find_contract_not_in_inputs
returnsNone
it should mean that theError::RevertTransactionError
was due to reasons other than missing output variables or contract inputs. We should forward the original error to the user in that case since it cannot be fixed by estimating dependencies anyways.I need to improve my reading skills
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 was the initial idea.