Skip to content

Commit

Permalink
bump alloy and complete send_4844 eg
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed May 3, 2024
1 parent 62aace8 commit 0f89982
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ unnecessary_struct_initialization = "allow"
use_self = "allow"

[workspace.dependencies]
alloy = { git = "https://github.com/alloy-rs/alloy", rev = "2d1c40c", features = [
alloy = { git = "https://github.com/alloy-rs/alloy", rev = "e22d9be", features = [
"consensus",
"kzg",
"eips",
"contract",
"network",
"node-bindings",
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ This repository contains the following examples:
- [x] [Trace transaction](./examples/transactions/examples/trace_transaction.rs)
- [x] [Transfer ERC20 token](./examples/transactions/examples/transfer_erc20.rs)
- [x] [Transfer ETH](./examples/transactions/examples/transfer_eth.rs)
- [x] [Sign and send a raw transaction](./examples/transactions/examples/sign_transaction.rs)
- [x] [Send transaction with access list](./examples/transactions/examples/with_access_list.rs)
- [x] [Sign and send a raw transaction](./examples/transactions/examples/sign_transaction.rs)
- [x] [Send transaction with access list](./examples/transactions/examples/with_access_list.rs)
- [x] [Send 4844 transaction](./examples/transactions/examples/send_4844.rs)
- [x] Wallets
- [x] [AWS signer](./examples/wallets/examples/aws_signer.rs)
- [x] [Ledger signer](./examples/wallets/examples/ledger_signer.rs)
Expand Down
2 changes: 1 addition & 1 deletion examples/transactions/examples/gas_price_usd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use alloy::{
node_bindings::Anvil,
primitives::{address, utils::format_units, Address, Bytes, U256},
providers::{Provider, ProviderBuilder},
rpc::types::eth::TransactionRequest,
rpc::types::eth::{BlockId, TransactionRequest},
sol,
sol_types::SolCall,
};
Expand Down
3 changes: 2 additions & 1 deletion examples/transactions/examples/send_4844.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
use alloy::{
consensus::{SidecarBuilder, SimpleCoder},
eips::eip4844::DATA_GAS_PER_BLOB,
network::TransactionBuilder,
node_bindings::Anvil,
providers::{Provider, ProviderBuilder},
Expand Down Expand Up @@ -35,7 +36,7 @@ async fn main() -> Result<()> {

let receipt = provider.send_transaction(tx).await?.get_receipt().await?;

assert!(receipt.blob_gas_used.unwrap() > 0);
assert_eq!(receipt.blob_gas_used.unwrap(), DATA_GAS_PER_BLOB as u128);

Ok(())
}

0 comments on commit 0f89982

Please sign in to comment.