-
Notifications
You must be signed in to change notification settings - Fork 65
l1: use AnvilBaseLayer in multi-contract events test
#7788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
l1: use AnvilBaseLayer in multi-contract events test
#7788
Conversation
b00e27a to
88f1e71
Compare
6395f25 to
2215d4e
Compare
88f1e71 to
e71f02a
Compare
2215d4e to
85bcb7d
Compare
e71f02a to
0860d6b
Compare
85bcb7d to
153c076
Compare
ArniStarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed (commit messages unreviewed), 1 unresolved discussion (waiting on @matan-starkware)
crates/papyrus_base_layer/src/base_layer_test.rs line 133 at r1 (raw file):
// Deploy another instance of the contract to the same anvil instance. let other_contract = Starknet::deploy(this_contract.contract.provider().clone()).await.unwrap();
I suggest dedicating a line to the provider, otherwise it looks odd that we use "this_contract" to declare the other contract.
I wrote the original line. #sorry.
Wait - can we get the provider for anvil_base_layer - without passing through this_contract?
Suggestion:
// Deploy another instance of the contract to the same anvil instance.
let provider = this_contract.contract.provider().clone();
let other_contract = Starknet::deploy(provider).await.unwrap();153c076 to
8d90f94
Compare
9e547ae to
f81844f
Compare
8d90f94 to
a1bab6f
Compare
giladchase
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed (commit messages unreviewed), 1 unresolved discussion (waiting on @ArniStarkware and @matan-starkware)
crates/papyrus_base_layer/src/base_layer_test.rs line 133 at r1 (raw file):
Done.
Wait - can we get the provider for
anvil_base_layer- without passing throughthis_contract?
We'll need to call this, which needs a config and node URL, but the coupling between those and the contract are the reason why base layer abstraction exists, so trying to create a new contract by hand will duplicate it's constructor logic basically, I think.
a1bab6f to
04a0c3c
Compare
ArniStarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @matan-starkware)
f81844f to
63855a1
Compare
92de0ef to
f9536ef
Compare
63855a1 to
65c5e4e
Compare
f9536ef to
b0f2c7a
Compare
65c5e4e to
83f6ba2
Compare
d729f2a to
f88d3af
Compare
0803f98 to
8ad01f9
Compare
f88d3af to
6cf4085
Compare
Merge activity
|
6cf4085 to
9fc8033
Compare

No description provided.