-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(contracts): update to cb95183
and add with_recommended_fillers()
to examples where appropriate
#50
Conversation
let contract_builder = Counter::deploy_builder(&provider); | ||
let estimate = contract_builder.estimate_gas().await?; | ||
let contract_address = | ||
contract_builder.gas(estimate).gas_price(base_fee).nonce(0).deploy().await?; | ||
|
||
println!("Deployed contract at address: {contract_address:?}"); | ||
let contract_address = contract_builder.deploy().await?; | ||
let contract = Counter::new(contract_address, provider); |
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.
Alternatively to be replaced by
Counter::deploy(&provider).await?;
@prestwich this example, as is, throws the following error: missing properties: [("NonceManager", ["from"]), ("Signer", ["TODO"])]
which is unexpected
Am I missing something or is this a bug?
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.
not a bug but work blocked by a PR. See the comment on the relevant code in the signer filler
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.
more specifically, Signer setting From and reporting kissing keys is blocked by refactor of tx builder
with_recommended_fillers()
to examples where appropriatewith_recommended_fillers()
to examples where appropriate
with_recommended_fillers()
to examples where appropriatecb95183
and add with_recommended_fillers()
to examples where appropriate
Appears that the PR closed itself when I changed the branch name to |
Motivation
Updates examples to be compatible with
cb95183
(includes changes from alloy-rs/alloy#406)Closes #12 and fixes https://github.com/alloy-rs/examples/actions/runs/8608183386
Goal is an incremental improvement and compatibility
Solution
Supersedes: #33
PR Checklist