Skip to content
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

Merged
merged 8 commits into from
Apr 17, 2024

Conversation

zerosnacks
Copy link
Member

@zerosnacks zerosnacks commented Apr 9, 2024

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
Member 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
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
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

@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
README.md Outdated Show resolved Hide resolved
@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
Member 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
4 checks passed
@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