Repository: OpenZeppelin/rust-contracts-stylus
Pull request #109 (2024-06-07 09:02:25)

ref(e2e): remove the need to set tx's from by bumping alloy
Since https://github.com/alloy-rs/alloy/issues/830 has been resolved, we don't need to set `from` explicitly anymore.


netlify[bot]: ### <span aria-hidden="true">👷</span> Deploy Preview for *contracts-stylus* processing.


|  Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | df5957013a13691cef8898ea6d84d5bf427e7c7e |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/sites/contracts-stylus/deploys/6662cca49407540008e72904 |

Patch:
diff --git a/Cargo.lock b/Cargo.lock
index 0bdf0a5..bc8be96 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -80,22 +80,22 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
 [[package]]
 name = "alloy"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
- "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-contract 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-contract 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-core",
- "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-genesis 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-network 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-provider 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-rpc-client 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-signer 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-signer-wallet 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-transport-http 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-genesis 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-network 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-provider 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-rpc-client 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-signer 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-signer-wallet 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-transport-http 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "reqwest",
 ]
 
@@ -134,12 +134,12 @@ dependencies = [
 [[package]]
 name = "alloy-consensus"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
- "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-primitives 0.7.4",
  "alloy-rlp",
- "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "c-kzg",
  "serde",
 ]
@@ -160,16 +160,16 @@ dependencies = [
 [[package]]
 name = "alloy-contract"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
  "alloy-dyn-abi",
  "alloy-json-abi",
- "alloy-network 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-network 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-primitives 0.7.4",
- "alloy-provider 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-provider 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-sol-types 0.7.4",
- "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "futures",
  "futures-util",
  "thiserror",
@@ -225,11 +225,11 @@ dependencies = [
 [[package]]
 name = "alloy-eips"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
  "alloy-primitives 0.7.4",
  "alloy-rlp",
- "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "c-kzg",
  "once_cell",
  "serde",
@@ -253,10 +253,10 @@ dependencies = [
 [[package]]
 name = "alloy-genesis"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
  "alloy-primitives 0.7.4",
- "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "serde",
  "serde_json",
 ]
@@ -287,7 +287,7 @@ dependencies = [
 [[package]]
 name = "alloy-json-rpc"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
  "alloy-primitives 0.7.4",
  "serde",
@@ -311,14 +311,14 @@ dependencies = [
 [[package]]
 name = "alloy-network"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
- "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-primitives 0.7.4",
- "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-signer 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-signer 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-sol-types 0.7.4",
  "async-trait",
  "auto_impl",
@@ -385,19 +385,19 @@ dependencies = [
 [[package]]
 name = "alloy-provider"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
  "alloy-chains",
- "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-network 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-network 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-primitives 0.7.4",
- "alloy-rpc-client 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-rpc-types-trace 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-transport-http 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-rpc-client 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-rpc-types-trace 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-transport-http 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "async-stream",
  "async-trait",
  "auto_impl",
@@ -468,11 +468,11 @@ dependencies = [
 [[package]]
 name = "alloy-rpc-client"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
- "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-transport-http 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-transport-http 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "futures",
  "pin-project",
  "reqwest",
@@ -508,14 +508,14 @@ dependencies = [
 [[package]]
 name = "alloy-rpc-types"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
- "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-genesis 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-genesis 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-primitives 0.7.4",
  "alloy-rlp",
- "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-sol-types 0.7.4",
  "itertools 0.12.1",
  "serde",
@@ -544,11 +544,11 @@ dependencies = [
 [[package]]
 name = "alloy-rpc-types-trace"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
  "alloy-primitives 0.7.4",
- "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-serde 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "serde",
  "serde_json",
 ]
@@ -568,7 +568,7 @@ dependencies = [
 [[package]]
 name = "alloy-serde"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
  "alloy-primitives 0.7.4",
  "serde",
@@ -588,7 +588,7 @@ dependencies = [
 [[package]]
 name = "alloy-signer"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
  "alloy-primitives 0.7.4",
  "async-trait",
@@ -614,12 +614,12 @@ dependencies = [
 [[package]]
 name = "alloy-signer-wallet"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
- "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-network 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-network 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-primitives 0.7.4",
- "alloy-signer 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-signer 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "async-trait",
  "k256",
  "rand",
@@ -744,9 +744,9 @@ dependencies = [
 [[package]]
 name = "alloy-transport"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
- "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "base64",
  "futures-util",
  "futures-utils-wasm",
@@ -780,10 +780,10 @@ dependencies = [
 [[package]]
 name = "alloy-transport-http"
 version = "0.1.0"
-source = "git+https://github.com/alloy-rs/alloy?rev=2bff1dd#2bff1dd43fb752c15f6179f2bfcebf4c3e0a227d"
+source = "git+https://github.com/alloy-rs/alloy?rev=0928b92#0928b92000d1a56370531d5d3d825729b03dfed9"
 dependencies = [
- "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
- "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy-json-rpc 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
+ "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "reqwest",
  "serde_json",
  "tower",
@@ -1629,7 +1629,7 @@ checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b"
 name = "e2e"
 version = "0.1.0"
 dependencies = [
- "alloy 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "e2e-proc",
  "eyre",
  "koba",
@@ -1738,7 +1738,7 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
 name = "erc20-example"
 version = "0.0.0"
 dependencies = [
- "alloy 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-primitives 0.3.3",
  "e2e",
  "eyre",
@@ -1753,7 +1753,7 @@ dependencies = [
 name = "erc721-example"
 version = "0.0.0"
 dependencies = [
- "alloy 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=2bff1dd)",
+ "alloy 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=0928b92)",
  "alloy-primitives 0.3.3",
  "e2e",
  "eyre",
diff --git a/Cargo.toml b/Cargo.toml
index a4478eb..74e1695 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,6 +45,18 @@ stylus-sdk = { version = "0.4.3", default-features = false }
 stylus-proc = { version = "0.4.3", default-features = false }
 mini-alloc = "0.4.2"
 
+alloy = { git = "https://github.com/alloy-rs/alloy", rev = "0928b92", features = [
+  "contract",
+  "network",
+  "providers",
+  "provider-http",
+  "rpc-client",
+  "rpc-types-eth",
+  "signers",
+  "signer-wallet",
+  "getrandom",
+] }
+
 [profile.release]
 codegen-units = 1
 panic = "abort"
diff --git a/examples/erc20/Cargo.toml b/examples/erc20/Cargo.toml
index 20a63d1..42ea11f 100644
--- a/examples/erc20/Cargo.toml
+++ b/examples/erc20/Cargo.toml
@@ -19,20 +19,10 @@ stylus-proc.workspace = true
 mini-alloc.workspace = true
 
 [dev-dependencies]
+alloy.workspace = true
 e2e = { path = "../../lib/e2e" }
 tokio = { version = "1.12.0", features = ["full"] }
 eyre = "0.6.8"
-alloy = { git = "https://github.com/alloy-rs/alloy", rev = "2bff1dd", features = [
-  "contract",
-  "network",
-  "providers",
-  "provider-http",
-  "rpc-client",
-  "rpc-types-eth",
-  "signers",
-  "signer-wallet",
-  "getrandom",
-] }
 
 [features]
 default = []
diff --git a/examples/erc721/Cargo.toml b/examples/erc721/Cargo.toml
index 1db79c3..37b7a1f 100644
--- a/examples/erc721/Cargo.toml
+++ b/examples/erc721/Cargo.toml
@@ -20,20 +20,10 @@ stylus-proc.workspace = true
 mini-alloc.workspace = true
 
 [dev-dependencies]
+alloy.workspace = true
 e2e = { path = "../../lib/e2e" }
 tokio = { version = "1.12.0", features = ["full"] }
 eyre = "0.6.8"
-alloy = { git = "https://github.com/alloy-rs/alloy", rev = "2bff1dd", features = [
-  "contract",
-  "network",
-  "providers",
-  "provider-http",
-  "rpc-client",
-  "rpc-types-eth",
-  "signers",
-  "signer-wallet",
-  "getrandom",
-] }
 rand = "0.8.5"
 
 [features]


Test patch:
diff --git a/examples/erc721/tests/erc721.rs b/examples/erc721/tests/erc721.rs
index 1008041..41583fb 100644
--- a/examples/erc721/tests/erc721.rs
+++ b/examples/erc721/tests/erc721.rs
@@ -50,7 +50,7 @@ async fn mints(alice: User) -> eyre::Result<()> {
 
     let alice_addr = alice.address();
     let token_id = random_token_id();
-    let _ = watch!(contract.mint(alice_addr, token_id).from(alice_addr))?;
+    let _ = watch!(contract.mint(alice_addr, token_id))?;
     let owner_of = contract.ownerOf(token_id).call().await?.ownerOf;
     assert_eq!(owner_of, alice_addr);
 
@@ -82,11 +82,9 @@ async fn transfers(alice: User, bob: User) -> eyre::Result<()> {
     let alice_addr = alice.address();
     let bob_addr = bob.address();
     let token_id = random_token_id();
-    let _ = watch!(contract.mint(alice_addr, token_id).from(alice_addr))?;
-
-    let receipt = receipt!(contract
-        .transferFrom(alice_addr, bob_addr, token_id)
-        .from(alice_addr))?;
+    let _ = watch!(contract.mint(alice_addr, token_id))?;
+    let receipt =
+        receipt!(contract.transferFrom(alice_addr, bob_addr, token_id))?;
 
     receipt.emits(Erc721::Transfer {
         from: alice_addr,
@@ -110,9 +108,7 @@ async fn errors_when_transfer_nonexistent_token(
 
     let alice_addr = alice.address();
     let token_id = random_token_id();
-    let tx = contract
-        .transferFrom(alice_addr, bob.address(), token_id)
-        .from(alice_addr);
+    let tx = contract.transferFrom(alice_addr, bob.address(), token_id);
 
     let err = send!(tx).expect_err("should not transfer a non-existent token");
     assert!(err.is(Erc721::ERC721NonexistentToken { tokenId: token_id }));
@@ -127,13 +123,11 @@ async fn approves_token_transfer(alice: User, bob: User) -> eyre::Result<()> {
     let alice_addr = alice.address();
     let bob_addr = bob.address();
     let token_id = random_token_id();
-    let _ = watch!(contract.mint(alice_addr, token_id).from(alice_addr))?;
-    let _ = watch!(contract.approve(bob_addr, token_id).from(alice_addr))?;
+    let _ = watch!(contract.mint(alice_addr, token_id))?;
+    let _ = watch!(contract.approve(bob_addr, token_id))?;
 
     let contract = Erc721::new(contract_addr, &bob.signer);
-    let _ = watch!(contract
-        .transferFrom(alice_addr, bob_addr, token_id)
-        .from(bob_addr))?;
+    let _ = watch!(contract.transferFrom(alice_addr, bob_addr, token_id))?;
     let Erc721::ownerOfReturn { ownerOf } =
         contract.ownerOf(token_id).call().await?;
     assert_ne!(ownerOf, alice_addr);
@@ -152,11 +146,10 @@ async fn errors_when_transfer_unapproved_token(
     let alice_addr = alice.address();
     let bob_addr = bob.address();
     let token_id = random_token_id();
-    let _ = watch!(contract.mint(alice_addr, token_id).from(alice_addr))?;
+    let _ = watch!(contract.mint(alice_addr, token_id))?;
 
     let contract = Erc721::new(contract_addr, &bob.signer);
-    let tx =
-        contract.transferFrom(alice_addr, bob_addr, token_id).from(bob_addr);
+    let tx = contract.transferFrom(alice_addr, bob_addr, token_id);
 
     let err = send!(tx).expect_err("should not transfer unapproved token");
     assert!(err.is(Erc721::ERC721InsufficientApproval {
diff --git a/lib/e2e/Cargo.toml b/lib/e2e/Cargo.toml
index 0cbfa92..d63187a 100644
--- a/lib/e2e/Cargo.toml
+++ b/lib/e2e/Cargo.toml
@@ -9,21 +9,11 @@ keywords.workspace = true
 repository.workspace = true
 
 [dependencies]
+alloy.workspace = true
 tokio = { version = "1.12.0", features = ["full", "process"] }
 eyre = "0.6.8"
 regex = "1.10.4"
 once_cell = "1.19.0"
 koba = { git = "https://github.com/OpenZeppelin/koba" }
-alloy = { git = "https://github.com/alloy-rs/alloy", rev = "2bff1dd", features = [
-  "contract",
-  "network",
-  "providers",
-  "provider-http",
-  "rpc-client",
-  "rpc-types-eth",
-  "signers",
-  "signer-wallet",
-  "getrandom",
-] }
 e2e-proc = { path = "../e2e-proc" }
 toml = "0.8.13"