-
Notifications
You must be signed in to change notification settings - Fork 90
fix(execution): execution of declare txs - fetch the class from the r… #1236
Conversation
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.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @yair-starkware)
crates/papyrus_rpc/src/v0_4_0/api/mod.rs
line 378 at r1 (raw file):
// For re-execution (traceTransaction, traceBlockTransactions) we need to get the class definition // of declare transactions from the storage before the execution. They are stored in the state after // the block, so we need to get it from the state after given block.
Suggestion:
the block in wich they appear, so we need to get it from the state after given block.
crates/papyrus_rpc/src/v0_4_0/api/mod.rs
line 385 at r1 (raw file):
) -> Result<starknet_api::deprecated_contract_class::ContractClass, ErrorObjectOwned> { // The class is stored in the state after the block, so we need to get it from the state after // given block.
How is that different from the comment above? Consider deleting.
Code quote:
// The class is stored in the state after the block, so we need to get it from the state after
// given block.
83cdfd7
to
65662c9
Compare
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.
Reviewable status: 0 of 1 files reviewed, all discussions resolved
crates/papyrus_rpc/src/v0_4_0/api/mod.rs
line 378 at r1 (raw file):
// For re-execution (traceTransaction, traceBlockTransactions) we need to get the class definition // of declare transactions from the storage before the execution. They are stored in the state after // the block, so we need to get it from the state after given block.
done
crates/papyrus_rpc/src/v0_4_0/api/mod.rs
line 385 at r1 (raw file):
Previously, dan-starkware wrote…
How is that different from the comment above? Consider deleting.
done
Codecov Report
@@ Coverage Diff @@
## main #1236 +/- ##
==========================================
+ Coverage 71.69% 71.72% +0.02%
==========================================
Files 82 82
Lines 7851 7848 -3
Branches 7851 7848 -3
==========================================
Hits 5629 5629
+ Misses 1315 1313 -2
+ Partials 907 906 -1
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
65662c9
to
2484265
Compare
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @yair-starkware)
…ight block
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this introduce a breaking change?
Other information
This change is