flashbots / suave-docs

https://suave.flashbots.net
Creative Commons Attribution 4.0 International
6 stars 6 forks source link

Forge edits #46

Closed andytudhope closed 10 months ago

andytudhope commented 10 months ago

Updates language to match rest of docs, and adds missing steps in instruction set required to make this work.

Still getting an error when running the script:

[⠔] Compiling...
[⠃] Compiling 9 files with 0.8.19
[⠊] Solc 0.8.19 finished in 1.25s
Compiler run successful with warnings:
Warning (2072): Unused local variable.
  --> suave-geth/suave/sol/libraries/SuaveForge.sol:63:9:
   |
63 |         bytes memory data = forgeIt("0x0000000000000000000000000000000042020000", abi.encode(bidId, key, data1));
   |         ^^^^^^^^^^^^^^^^^

Warning (2072): Unused local variable.
  --> src/example.sol:10:9:
   |
10 |         Suave.Bid memory bid = SuaveForge.newBid(
   |         ^^^^^^^^^^^^^^^^^^^^

Warning (2018): Function state mutability can be restricted to view
 --> src/example.sol:9:5:
  |
9 |     function example() public {
  |     ^ (Relevant source part starts here and spans across multiple lines).

Error: 
Function `run()` is not implemented in your script.

and will add a concluding sentence once everything is working as expected.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
suave-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 4:05pm