-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recursive version of get_storage circuit
- Loading branch information
1 parent
2ad4011
commit 7b4938c
Showing
4 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "get_storage_recursive" | ||
type = "bin" | ||
compiler_version = ">=0.30.0" | ||
|
||
[dependencies] | ||
ethereum = { path = "../lib" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Recursive get_storage | ||
|
||
Recursive version of [get_storage](../get_storage/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use dep::ethereum::{account_with_storage::{get_account_with_storage, StorageWithinBlock}, misc::types::{Address, Bytes32}}; | ||
|
||
#[recursive] | ||
fn main( | ||
chain_id: pub Field, | ||
block_number: pub u64, | ||
address: pub Address, | ||
storage_key: pub Bytes32 | ||
) -> pub StorageWithinBlock<1> { | ||
get_account_with_storage(chain_id, block_number, address, storage_key) | ||
} |