chore: bump alloy 0.3.3 (#10806)

This commit is contained in:
Matthias Seitz
2024-09-10 13:27:35 +02:00
committed by GitHub
parent 5a5511743e
commit ed4235609f
5 changed files with 136 additions and 113 deletions

176
Cargo.lock generated
View File

@ -117,9 +117,9 @@ dependencies = [
[[package]]
name = "alloy-consensus"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4177d135789e282e925092be8939d421b701c6d92c0a16679faa659d9166289d"
checksum = "1468e3128e07c7afe4ff13c17e8170c330d12c322f8924b8bf6986a27e0aad3d"
dependencies = [
"alloy-eips",
"alloy-primitives",
@ -177,9 +177,9 @@ dependencies = [
[[package]]
name = "alloy-eips"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "499ee14d296a133d142efd215eb36bf96124829fe91cf8f5d4e5ccdd381eae00"
checksum = "0c35df7b972b06f1b2f4e8b7a53328522fa788054a9d3e556faf2411c5a51d5a"
dependencies = [
"alloy-eip2930",
"alloy-eip7702",
@ -196,9 +196,9 @@ dependencies = [
[[package]]
name = "alloy-genesis"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b85dfc693e4a1193f0372a8f789df12ab51fcbe7be0733baa04939a86dd813b"
checksum = "0b7210f9206c0fa2a83c824cf8cb6c962126bc9fdc4f41ade1932f14150ef5f6"
dependencies = [
"alloy-primitives",
"alloy-serde",
@ -219,9 +219,9 @@ dependencies = [
[[package]]
name = "alloy-json-rpc"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4207166c79cfdf7f3bed24bbc84f5c7c5d4db1970f8c82e3fcc76257f16d2166"
checksum = "8866562186d237f1dfeaf989ef941a24764f764bf5c33311e37ead3519c6a429"
dependencies = [
"alloy-primitives",
"alloy-sol-types",
@ -233,9 +233,9 @@ dependencies = [
[[package]]
name = "alloy-network"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfbe2802d5b8c632f18d68c352073378f02a3407c1b6a4487194e7d21ab0f002"
checksum = "abe714e233f9eaf410de95a9af6bcd05d3a7f8c8de7a0817221e95a6b642a080"
dependencies = [
"alloy-consensus",
"alloy-eips",
@ -254,10 +254,11 @@ dependencies = [
[[package]]
name = "alloy-network-primitives"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "396c07726030fa0f9dab5da8c71ccd69d5eb74a7fe1072b7ae453a67e4fe553e"
checksum = "8c5a38117974c5776a45e140226745a0b664f79736aa900995d8e4121558e064"
dependencies = [
"alloy-eips",
"alloy-primitives",
"alloy-serde",
"serde",
@ -265,9 +266,9 @@ dependencies = [
[[package]]
name = "alloy-node-bindings"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c847311cc7386684ef38ab404069d795bee07da945f63d884265436870a17276"
checksum = "d149d4f3147b3494e1b1db8704e9fdb579e8c666c3deb7d070ebd5f38c2abb15"
dependencies = [
"alloy-genesis",
"alloy-primitives",
@ -307,9 +308,9 @@ dependencies = [
[[package]]
name = "alloy-provider"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1376948df782ffee83a54cac4b2aba14134edd997229a3db97da0a606586eb5c"
checksum = "c65633d6ef83c3626913c004eaf166a6dd50406f724772ea8567135efd6dc5d3"
dependencies = [
"alloy-chains",
"alloy-consensus",
@ -345,9 +346,9 @@ dependencies = [
[[package]]
name = "alloy-pubsub"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa73f976e7b6341f3f8a404241cf04f883d40212cd4f2633c66d99de472e262c"
checksum = "949db89abae6193b44cc90ebf2eeb74eb8d2a474383c5e62b45bdcd362e84f8f"
dependencies = [
"alloy-json-rpc",
"alloy-primitives",
@ -358,7 +359,7 @@ dependencies = [
"serde_json",
"tokio",
"tokio-stream",
"tower",
"tower 0.5.1",
"tracing",
]
@ -386,9 +387,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-client"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02378418a429f8a14a0ad8ffaa15b2d25ff34914fc4a1e366513c6a3800e03b3"
checksum = "d5fc328bb5d440599ba1b5aa44c0b9ab0625fbc3a403bb5ee94ed4a01ba23e07"
dependencies = [
"alloy-json-rpc",
"alloy-primitives",
@ -403,16 +404,16 @@ dependencies = [
"serde_json",
"tokio",
"tokio-stream",
"tower",
"tower 0.5.1",
"tracing",
"url",
]
[[package]]
name = "alloy-rpc-types"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9ae4c4fbd37d9996f501fbc7176405aab97ae3a5772789be06ef0e7c4dad6dd"
checksum = "8f8ff679f94c497a8383f2cd09e2a099266e5f3d5e574bc82b4b379865707dbb"
dependencies = [
"alloy-rpc-types-engine",
"alloy-rpc-types-eth",
@ -422,9 +423,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-admin"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "594b7cb723759c7b438c95a3bbd2e391760c03ee857443070758aaf2593ae84e"
checksum = "cfeb75bc4dad84037f6ebd9385b8fe85833aac70c384e99855bc2f38cc35ab91"
dependencies = [
"alloy-genesis",
"alloy-primitives",
@ -434,9 +435,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-anvil"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "140b079c6fda14d9586432bf988b46ac0e04871ca313c9e00aa85cc808105e8a"
checksum = "1d430bf98148565e67b2c08f033dd5fb27ce901c3481018941ce1524b9ad4fba"
dependencies = [
"alloy-primitives",
"alloy-serde",
@ -445,9 +446,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-beacon"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abbd9b6764423821bd6874477791ca68cfd0e946958d611319b57b006edf0113"
checksum = "b016035bb76144d04c071004383370d39def54d1a857171277f618112086b70e"
dependencies = [
"alloy-eips",
"alloy-primitives",
@ -459,9 +460,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-debug"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd56b9d938e458b8d4498b276bd3aaf0e8f0b58e86fe04fef2c71fed4b4c96de"
checksum = "1c037ac74c2aff58a6f8f82179b7f05c6b02b762b661abff9d8fe32056bc4a41"
dependencies = [
"alloy-primitives",
"serde",
@ -469,9 +470,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-engine"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d79cadb52e32d40afa04847647eb50a332559d7870e66e46a0c32c33bf1c801d"
checksum = "b66bb45f4c5efe227bcb51d89c97221225169976e18097671a0bd4393d8248a4"
dependencies = [
"alloy-consensus",
"alloy-eips",
@ -488,9 +489,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-eth"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15bb3506ab1cf415d4752778c93e102050399fb8de97b7da405a5bf3e31f5f3b"
checksum = "9a59b1d7c86e0a653e7f3d29954f6de5a2878d8cfd1f010ff93be5c2c48cd3b1"
dependencies = [
"alloy-consensus",
"alloy-eips",
@ -509,9 +510,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-mev"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19e8cb848b66617f7d58b576bfc416854c4e9ae8d35e14f5077c0c779048f280"
checksum = "456a942b962e140d574d09b52241bc9f4277203fb80bddb1f49de57ca3ce4e00"
dependencies = [
"alloy-eips",
"alloy-primitives",
@ -522,9 +523,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-trace"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16cca915e0aab3b2657b4f9efe02eb88e5483905fb6d244749652aae14e5f92e"
checksum = "c54375e5a34ec5a2cf607f9ce98c0ece30dc76ad623afeb25d3953a8d7d30f20"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-eth",
@ -536,9 +537,9 @@ dependencies = [
[[package]]
name = "alloy-rpc-types-txpool"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68eede4bd722bb872222efbbfbccc8f9b86e597143934b8ce556d3e0487bb662"
checksum = "65ae88491edfc8bbd55ba2b22b2ff24d4c522bacd8808461c4a232715fee3d22"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-eth",
@ -548,9 +549,9 @@ dependencies = [
[[package]]
name = "alloy-serde"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae417978015f573b4a8c02af17f88558fb22e3fccd12e8a910cf6a2ff331cfcb"
checksum = "51db8a6428a2159e01b7a43ec7aac801edd0c4db1d4de06f310c288940f16fd3"
dependencies = [
"alloy-primitives",
"arbitrary",
@ -560,9 +561,9 @@ dependencies = [
[[package]]
name = "alloy-signer"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b750c9b61ac0646f8f4a61231c2732a337b2c829866fc9a191b96b7eedf80ffe"
checksum = "bebc1760c13592b7ba3fcd964abba546b8d6a9f10d15e8d92a8263731be33f36"
dependencies = [
"alloy-primitives",
"async-trait",
@ -574,9 +575,9 @@ dependencies = [
[[package]]
name = "alloy-signer-local"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c640f9343e8f741f837c345c5ea30239ba77938b3691b884c736834853bd16c"
checksum = "3bfb3508485aa798efb5725322e414313239274d3780079b7f8c6746b8ee6e1b"
dependencies = [
"alloy-consensus",
"alloy-network",
@ -662,9 +663,9 @@ dependencies = [
[[package]]
name = "alloy-transport"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2799749ca692ae145f54968778877afd7c95e788488f176cfdfcf2a8abeb2062"
checksum = "fd5dc4e902f1860d54952446d246ac05386311ad61030a2b906ae865416d36e0"
dependencies = [
"alloy-json-rpc",
"base64 0.22.1",
@ -674,31 +675,31 @@ dependencies = [
"serde_json",
"thiserror",
"tokio",
"tower",
"tower 0.5.1",
"tracing",
"url",
]
[[package]]
name = "alloy-transport-http"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc10c4dd932f66e0db6cc5735241e0c17a6a18564b430bbc1839f7db18587a93"
checksum = "1742b94bb814f1ca6b322a6f9dd38a0252ff45a3119e40e888fb7029afa500ce"
dependencies = [
"alloy-json-rpc",
"alloy-transport",
"reqwest",
"serde_json",
"tower",
"tower 0.5.1",
"tracing",
"url",
]
[[package]]
name = "alloy-transport-ipc"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38f39f88798c3282914079a3eda3ea8b9fbf21e383a0ce85958b4f1c170d222f"
checksum = "be321aac6f06d86855d41d4ce9ff9feb877fe7e9fe1cafce7380b981c12398c7"
dependencies = [
"alloy-json-rpc",
"alloy-pubsub",
@ -715,9 +716,9 @@ dependencies = [
[[package]]
name = "alloy-transport-ws"
version = "0.3.1"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65e732028930aa17b7edd464a9711365417635e984028fcc7176393ccea22c00"
checksum = "e8ed861e7030001364c8ffa2db63541f7bae275a6e636de7616c20f2fd3dc0c3"
dependencies = [
"alloy-pubsub",
"alloy-transport",
@ -3640,7 +3641,7 @@ dependencies = [
"pin-project-lite",
"socket2 0.5.7",
"tokio",
"tower",
"tower 0.4.13",
"tower-service",
"tracing",
]
@ -4204,7 +4205,7 @@ dependencies = [
"serde_json",
"thiserror",
"tokio",
"tower",
"tower 0.4.13",
"tracing",
"url",
]
@ -4245,7 +4246,7 @@ dependencies = [
"tokio",
"tokio-stream",
"tokio-util",
"tower",
"tower 0.4.13",
"tracing",
]
@ -5080,9 +5081,9 @@ checksum = "b410bbe7e14ab526a0e86877eb47c6996a2bd7746f027ba551028c925390e4e9"
[[package]]
name = "op-alloy-consensus"
version = "0.2.8"
version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b7fbb0f5c3754c22c6ea30e100dca6aea73b747e693e27763e23ca92fb02f2f"
checksum = "ad134a77fdfebac469526756b207c7889593657eeaca374200332ec89175e27a"
dependencies = [
"alloy-consensus",
"alloy-eips",
@ -5097,9 +5098,9 @@ dependencies = [
[[package]]
name = "op-alloy-network"
version = "0.2.8"
version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff4d24313531c4a988f590da377491accd4a108711b44243ccd6615a3afb9c3f"
checksum = "f4234322a67d2c0be701ea61381ac7c78984bda2fae0be3d8e0d1e055c583b2f"
dependencies = [
"alloy-consensus",
"alloy-eips",
@ -5112,10 +5113,11 @@ dependencies = [
[[package]]
name = "op-alloy-rpc-types"
version = "0.2.8"
version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1fbb93dcb71aba9cd555784375011efce1fdaaea67e01972a0a9bc9eb90c626"
checksum = "f9fbd440cd8a5ccfa7c4c085b29fd0f0a1574fb53e1572f8e070cc105039e42b"
dependencies = [
"alloy-eips",
"alloy-network",
"alloy-primitives",
"alloy-rpc-types-eth",
@ -5127,9 +5129,9 @@ dependencies = [
[[package]]
name = "op-alloy-rpc-types-engine"
version = "0.2.8"
version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14716d1b1e82ca710de448f16efb62e29b2ed999f0ea0060801fd037666fabc7"
checksum = "b8b14dba2261a5d54e4502d41dcee03079b5d2d13d47a07b8ec2c67722af10c7"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-engine",
@ -6087,7 +6089,7 @@ dependencies = [
"serde",
"serde_json",
"serde_urlencoded",
"sync_wrapper",
"sync_wrapper 1.0.1",
"tokio",
"tokio-rustls",
"tokio-util",
@ -6319,7 +6321,7 @@ dependencies = [
"tikv-jemallocator",
"tokio",
"tokio-util",
"tower",
"tower 0.4.13",
"tracing",
]
@ -7371,7 +7373,7 @@ dependencies = [
"tokio",
"tokio-stream",
"tokio-util",
"tower",
"tower 0.4.13",
"tracing",
]
@ -7802,7 +7804,7 @@ dependencies = [
"socket2 0.4.10",
"tikv-jemalloc-ctl",
"tokio",
"tower",
"tower 0.4.13",
"tracing",
"vergen",
]
@ -8282,7 +8284,7 @@ dependencies = [
"thiserror",
"tokio",
"tokio-stream",
"tower",
"tower 0.4.13",
"tracing",
"tracing-futures",
]
@ -8359,7 +8361,7 @@ dependencies = [
"serde_json",
"thiserror",
"tokio",
"tower",
"tower 0.4.13",
"tower-http",
"tracing",
]
@ -8483,7 +8485,7 @@ dependencies = [
"pin-project",
"reqwest",
"tokio",
"tower",
"tower 0.4.13",
"tracing",
]
@ -9949,6 +9951,12 @@ dependencies = [
"syn 2.0.77",
]
[[package]]
name = "sync_wrapper"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
[[package]]
name = "sync_wrapper"
version = "1.0.1"
@ -10380,6 +10388,20 @@ dependencies = [
"tracing",
]
[[package]]
name = "tower"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2873938d487c3cfb9aed7546dc9f2711d867c9f90c46b889989a2cb84eba6b4f"
dependencies = [
"futures-core",
"futures-util",
"pin-project-lite",
"sync_wrapper 0.1.2",
"tower-layer",
"tower-service",
]
[[package]]
name = "tower-http"
version = "0.5.2"
@ -10404,7 +10426,7 @@ dependencies = [
"pin-project-lite",
"tokio",
"tokio-util",
"tower",
"tower 0.4.13",
"tower-layer",
"tower-service",
"tracing",

View File

@ -423,44 +423,44 @@ alloy-rlp = "0.3.4"
alloy-sol-types = "0.8.0"
alloy-trie = { version = "0.5", default-features = false }
alloy-consensus = { version = "0.3.1", default-features = false }
alloy-eips = { version = "0.3.1", default-features = false }
alloy-genesis = { version = "0.3.1", default-features = false }
alloy-json-rpc = { version = "0.3.1", default-features = false }
alloy-network = { version = "0.3.1", default-features = false }
alloy-node-bindings = { version = "0.3.1", default-features = false }
alloy-provider = { version = "0.3.1", features = [
alloy-consensus = { version = "0.3.3", default-features = false }
alloy-eips = { version = "0.3.3", default-features = false }
alloy-genesis = { version = "0.3.3", default-features = false }
alloy-json-rpc = { version = "0.3.3", default-features = false }
alloy-network = { version = "0.3.3", default-features = false }
alloy-node-bindings = { version = "0.3.3", default-features = false }
alloy-provider = { version = "0.3.3", features = [
"reqwest",
], default-features = false }
alloy-pubsub = { version = "0.3.1", default-features = false }
alloy-rpc-client = { version = "0.3.1", default-features = false }
alloy-rpc-types = { version = "0.3.1", features = [
alloy-pubsub = { version = "0.3.3", default-features = false }
alloy-rpc-client = { version = "0.3.3", default-features = false }
alloy-rpc-types = { version = "0.3.3", features = [
"eth",
], default-features = false }
alloy-rpc-types-admin = { version = "0.3.1", default-features = false }
alloy-rpc-types-anvil = { version = "0.3.1", default-features = false }
alloy-rpc-types-beacon = { version = "0.3.1", default-features = false }
alloy-rpc-types-debug = { version = "0.3.1", default-features = false }
alloy-rpc-types-engine = { version = "0.3.1", default-features = false }
alloy-rpc-types-eth = { version = "0.3.1", default-features = false }
alloy-rpc-types-mev = { version = "0.3.1", default-features = false }
alloy-rpc-types-trace = { version = "0.3.1", default-features = false }
alloy-rpc-types-txpool = { version = "0.3.1", default-features = false }
alloy-serde = { version = "0.3.1", default-features = false }
alloy-signer = { version = "0.3.1", default-features = false }
alloy-signer-local = { version = "0.3.1", default-features = false }
alloy-transport = { version = "0.3.1" }
alloy-transport-http = { version = "0.3.1", features = [
alloy-rpc-types-admin = { version = "0.3.3", default-features = false }
alloy-rpc-types-anvil = { version = "0.3.3", default-features = false }
alloy-rpc-types-beacon = { version = "0.3.3", default-features = false }
alloy-rpc-types-debug = { version = "0.3.3", default-features = false }
alloy-rpc-types-engine = { version = "0.3.3", default-features = false }
alloy-rpc-types-eth = { version = "0.3.3", default-features = false }
alloy-rpc-types-mev = { version = "0.3.3", default-features = false }
alloy-rpc-types-trace = { version = "0.3.3", default-features = false }
alloy-rpc-types-txpool = { version = "0.3.3", default-features = false }
alloy-serde = { version = "0.3.3", default-features = false }
alloy-signer = { version = "0.3.3", default-features = false }
alloy-signer-local = { version = "0.3.3", default-features = false }
alloy-transport = { version = "0.3.3" }
alloy-transport-http = { version = "0.3.3", features = [
"reqwest-rustls-tls",
], default-features = false }
alloy-transport-ipc = { version = "0.3.1", default-features = false }
alloy-transport-ws = { version = "0.3.1", default-features = false }
alloy-transport-ipc = { version = "0.3.3", default-features = false }
alloy-transport-ws = { version = "0.3.3", default-features = false }
# op
op-alloy-rpc-types = "0.2.8"
op-alloy-rpc-types-engine = "0.2.8"
op-alloy-network = "0.2.8"
op-alloy-consensus = "0.2.8"
op-alloy-rpc-types = "0.2.9"
op-alloy-rpc-types-engine = "0.2.9"
op-alloy-network = "0.2.9"
op-alloy-consensus = "0.2.9"
# misc
aquamarine = "0.5"

View File

@ -81,7 +81,7 @@ impl FillTxEnv for TransactionSigned {
tx_env.gas_limit = tx.gas_limit as u64;
tx_env.gas_price = U256::from(tx.max_fee_per_gas);
tx_env.gas_priority_fee = Some(U256::from(tx.max_priority_fee_per_gas));
tx_env.transact_to = tx.to;
tx_env.transact_to = tx.to.into();
tx_env.value = tx.value;
tx_env.data = tx.input.clone();
tx_env.chain_id = Some(tx.chain_id);

View File

@ -218,9 +218,10 @@ impl Transaction {
match self {
Self::Legacy(TxLegacy { to, .. }) |
Self::Eip2930(TxEip2930 { to, .. }) |
Self::Eip1559(TxEip1559 { to, .. }) |
Self::Eip7702(TxEip7702 { to, .. }) => *to,
Self::Eip4844(TxEip4844 { to, .. }) => TxKind::Call(*to),
Self::Eip1559(TxEip1559 { to, .. }) => *to,
Self::Eip4844(TxEip4844 { to, .. }) | Self::Eip7702(TxEip7702 { to, .. }) => {
TxKind::Call(*to)
}
#[cfg(feature = "optimism")]
Self::Deposit(TxDeposit { to, .. }) => *to,
}

View File

@ -1,7 +1,7 @@
use crate::Compact;
use alloy_consensus::transaction::TxEip7702 as AlloyTxEip7702;
use alloy_eips::{eip2930::AccessList, eip7702::SignedAuthorization};
use alloy_primitives::{Bytes, ChainId, TxKind, U256};
use alloy_primitives::{Address, Bytes, ChainId, U256};
use reth_codecs_derive::add_arbitrary_tests;
use serde::{Deserialize, Serialize};
@ -25,7 +25,7 @@ pub(crate) struct TxEip7702 {
gas_limit: u64,
max_fee_per_gas: u128,
max_priority_fee_per_gas: u128,
to: TxKind,
to: Address,
value: U256,
access_list: AccessList,
authorization_list: Vec<SignedAuthorization>,