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

Foundry support issues for Quorum chains #1726

Open
yohanelly95 opened this issue Aug 26, 2024 · 5 comments
Open

Foundry support issues for Quorum chains #1726

yohanelly95 opened this issue Aug 26, 2024 · 5 comments

Comments

@yohanelly95
Copy link

yohanelly95 commented Aug 26, 2024

System information

Geth version: v1.10.3
Quorum version: v24.4.1
OS & Version: Linux

Expected behaviour

Ability to run forge script/ forge create etc including cast commands for sending txns.

Actual behaviour

forge script: only runs the first txn then gets stuck waiting for a txn receipt indefinitely even though the txn was successful! The txn receipt is never received.
forge create: same issue as forge script
cast send: I get this error even though the txn was successful.

Error: 
deserialization error: missing field `effectiveGasPrice` at line 1 column 1522

Context:
- missing field `effectiveGasPrice` at line 1 column 1522

--legacy: using the legacy flag is required even though I have enabled london from genesis, attaching a snippet of my genesis.json.

"config": {
      "chainId": 1337,
      "homesteadBlock": 0,
      "eip150Block": 0,
      "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "eip155Block": 0,
      "eip158Block": 0,
      "byzantiumBlock": 0,
      "constantinopleBlock": 0,
      "petersburgBlock": 0,
      "istanbulBlock": 0,
      "muirglacierblock": 0,
      "berlinBlock": 0,
      "londonBlock": 0,
      "isQuorum": true,
      "maxCodeSizeConfig": [
        {
          "block": 0,
          "size": 64
        }
      ],
      "txnSizeLimit": 64,
      "enableGasPriceBlock": 10,
        "transitions": [{
           "block": 10,
           "blockReward": "1000000",
           "beneficiaryMode": "validators"
         },
         {
            "block": 20,
            "validatorselectionmode": "contract",
            "validatorcontractaddress": "0xFEb70E7Ad36b425b698184B3d5b1F856c8132a42"
          },
          {
            "block": 1200,
            "blockReward": "100000000",
            "beneficiaryMode": "validators"
          }],
      "qbft": {
        "policy": 0,
        "epoch": 30000,
        "ceil2Nby3Block": 0,
        "testQBFTBlock": 0,
        "blockperiodseconds": 5,
        "emptyblockperiodseconds": 60,
        "requesttimeoutseconds": 10
      }
    }

Steps to reproduce the behaviour

Run any foundry based commands on the chain.

@yohanelly95
Copy link
Author

@rodion-lim-partior any insights around this?

@rodion-lim-partior
Copy link
Contributor

rodion-lim-partior commented Aug 30, 2024

@yohanelly95, Quorum does not support London fork. Please pass in only --legacy transactions

@yohanelly95
Copy link
Author

@yohanelly95, Quorum does not support London fork. Please pass in only --legacy transactions

@rodion-lim-partior so I do pass in the legacy flag then the txn goes through but returns an error that

Error: 
deserialization error: missing field `effectiveGasPrice` at line 1 column 1522

Context:
- missing field `effectiveGasPrice` at line 1 column 1522

Also when using forge script commands the 1st txn goes through, but the txn receipt is never received so it gets stuck in limbo and the next txn is never submitted. How do I resolve this?

@rodion-lim-partior
Copy link
Contributor

I tested on both cast send and forge create. Seems to be working fine on my end:

Version: forge 0.2.0 (5b7e4cb 2023-12-02T00:21:00.501921838Z)

cast send --legacy --rpc-url http://localhost:5100 --private-key 0x8bbbb1b345af56b560a5b20bd4b0ed1cd8cc9958a16262bc75118453cb546df7 0x68249ac64729F5e29f296ac0a670BDf9F6E6BeF9 "set(uint256)" 123

blockHash               0x011d668a677caa475c791f2a5de2394ffc8e252004b56d3f393d5db324e9c7d1
blockNumber             13
contractAddress         
cumulativeGasUsed       41416
effectiveGasPrice       
gasUsed                 41416
logs                    []
logsBloom               0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
root                    
status                  1
transactionHash         0x769bd40bd84aa160117301824a4abc78271d4b68f48f07558e087990777a2c44
transactionIndex        0
type                    0

@yohanelly95
Copy link
Author

I tested on both cast send and forge create. Seems to be working fine on my end:

Version: forge 0.2.0 (5b7e4cb 2023-12-02T00:21:00.501921838Z)

cast send --legacy --rpc-url http://localhost:5100 --private-key 0x8bbbb1b345af56b560a5b20bd4b0ed1cd8cc9958a16262bc75118453cb546df7 0x68249ac64729F5e29f296ac0a670BDf9F6E6BeF9 "set(uint256)" 123

blockHash               0x011d668a677caa475c791f2a5de2394ffc8e252004b56d3f393d5db324e9c7d1
blockNumber             13
contractAddress         
cumulativeGasUsed       41416
effectiveGasPrice       
gasUsed                 41416
logs                    []
logsBloom               0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
root                    
status                  1
transactionHash         0x769bd40bd84aa160117301824a4abc78271d4b68f48f07558e087990777a2c44
transactionIndex        0
type                    0

I see, this seems to be a much older version of foundry. I am using version
forge 0.2.0 (0b73b42 2024-08-05T00:19:50.130854000Z)

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

No branches or pull requests

2 participants