Sitelet https://github.com/alloy-rs/examples/pull/50
Skip to content

feat(contracts): update to cb95183 and add with_recommended_fillers() to examples where appropriate - #50

Merged
zerosnacks merged 8 commits into
mainfrom
zerosnacks/update-to-cd5a2c7
Apr 17, 2024
Merged

zerosnacks merged 8 commits into
mainfrom
zerosnacks/update-to-cd5a2c7

Conversation

@zerosnacks

@zerosnacks zerosnacks commented Apr 9, 2024 •

Copy link
Copy Markdown
Contributor

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

  • Added Documentation
  • Breaking changes

@zerosnacks zerosnacks removed the blocked label Apr 9, 2024
Comment on lines 46 to +48
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);

Copy link
Copy Markdown
Contributor Author

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?

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member

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

Comment thread examples/layers/examples/nonce_management_filler.rs
@zerosnacks zerosnacks changed the title feat(contracts): update to cd5a2c7 and add with_recommended_fillers() to examples where appropriate feat(contracts): update to cb95183 and add with_recommended_fillers() to examples where appropriate Apr 16, 2024
@zerosnacks
zerosnacks marked this pull request as ready for review April 16, 2024 12:09
Comment thread README.md Outdated
@zerosnacks zerosnacks changed the title feat(contracts): update to cb95183 and add with_recommended_fillers() to examples where appropriate feat(contracts): update to cb95183 and add with_recommended_fillers() to examples where appropriate Apr 16, 2024
@zerosnacks zerosnacks closed this Apr 16, 2024
@zerosnacks
zerosnacks deleted the zerosnacks/update-to-cd5a2c7 branch April 16, 2024 12:16
@zerosnacks
zerosnacks restored the zerosnacks/update-to-cd5a2c7 branch April 16, 2024 12:17
@zerosnacks zerosnacks reopened this Apr 16, 2024
@zerosnacks

Copy link
Copy Markdown
Contributor Author

Appears that the PR closed itself when I changed the branch name to update-to-cb95183, restored and reopenend.

@zerosnacks
zerosnacks merged commit 4d111af into main Apr 17, 2024
@zerosnacks
zerosnacks deleted the zerosnacks/update-to-cd5a2c7 branch April 17, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add GasFiller example to contracts and as gas_filler example in layers

2 participants