Skip to content

Commit

Permalink
fix: 🚑 fix get_block in starknet-rs due to starknet v0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcaron committed Mar 12, 2024
1 parent f28f8bd commit 9ed437e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ git # Deoxys Changelog

## Next release

- fix: remove gas_price and update starknet-rs from fork (temporary fix)
- fix(root): got state root to work (does not support class root yet)
- refactor(substrate_hash): Substrate hash is now retrieved via rpc client in
`l2.rs`
Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion crates/client/sync/src/utils/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ pub async fn block(block: p::Block) -> mp_block::Block {
let (transaction_commitment, event_commitment) = commitments(&transactions, &events, block_number).await;

let protocol_version = starknet_version(&block.starknet_version);
let l1_gas_price = resource_price(block.eth_l1_gas_price);
// TODO calculate gas_price when starknet-rs supports v0.13.1
// let l1_gas_price = resource_price(block.eth_l1_gas_price);
let l1_gas_price = resource_price(FieldElement::ZERO);
let extra_data = block.block_hash.map(|h| sp_core::U256::from_big_endian(&h.to_bytes_be()));

let header = mp_block::Header {
Expand Down

0 comments on commit 9ed437e

Please sign in to comment.