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

Add builder example #35

Merged
merged 19 commits into from
Feb 29, 2024
Merged

Add builder example #35

merged 19 commits into from
Feb 29, 2024

Conversation

lthibault
Copy link
Contributor

No description provided.

@lthibault lthibault added the enhancement New feature or request label Feb 21, 2024
@lthibault lthibault self-assigned this Feb 21, 2024
@lthibault lthibault requested a review from ferranbt February 22, 2024 00:51
@lthibault lthibault marked this pull request as ready for review February 24, 2024 00:45
Copy link
Member

@dmarzzz dmarzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can u also add a ReadMe plz

examples/builder/builder.sol Outdated Show resolved Hide resolved
examples/builder/builder.sol Outdated Show resolved Hide resolved
examples/builder/main.go Outdated Show resolved Hide resolved

L1RPC string `env:"L1_RPC, default=http://localhost:8555"`

// This account is funded in your local SUAVE devnet
// address: 0xBE69d72ca5f88aCba033a063dF5DBe43a4148De0
FundedAccountL1 *PrivKey `env:"L1_PRIVKEY, default=91ab9a7e53c220e6210460b65a7a3bb2ca181412a8a7b43ff336b3df1737ce12"`
FundedAccountL1 *PrivKey `env:"L1_PRIVKEY, default=6c45335a22461ccdb978b78ab61b238bad2fae4544fb55c14eb096c875ccfc52"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did u mean to change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This addresses the account funding issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this account should be set to the devnet account that gets funded? but i guess if it passes tests its fine!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'll need to look into this a bit more and figure out exactly what's going on. I'm thinking we can ship this PR first, then add extra assertions to the test per your other comment, then investigate what's up with this account funding.

examples/builder/main.go Outdated Show resolved Hide resolved
@dmarzzz
Copy link
Member

dmarzzz commented Feb 27, 2024

btw we should also rename from /examples/builder to something more descriptive like /examples/build-eth-block

@lthibault lthibault requested a review from zeroXbrock February 29, 2024 21:22
Copy link
Member

@zeroXbrock zeroXbrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a go developer so idk if I'm missing anything, but it looks good, and it works.

examples/build-eth-block/builder.sol Show resolved Hide resolved
@lthibault lthibault merged commit 1316518 into main Feb 29, 2024
2 checks passed
@lthibault lthibault deleted the feat/builder branch February 29, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants