-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Web3ValidatorError error when use sendSignedTransaction on HB blockchain #6393
Comments
Hello ! I thought I had solved the problem with this line of code, but I have a new problem after this modification. line of code :
new issue :
|
Hello @louloub, So, I have a suggestion, you can please repeat the same scenario with geth or Ganache. And if you still face the issue then inform us. And if you did not face the issue with geth or Ganache, I recommend opening an issue with Hyperledger Besu blockchain. As the error indicates that the EVM had reverted the transaction and it did not provide more info. I also see that you did not tell the web3.js version that you are using. It seems you are using 1.x right? I recommend moving to 4.x. And with 4.x your code should be updated for the breaking changes between 1.x and 4.x. As I noticed that you need to update your code for |
Hi @Muhammad-Altabba ! Thanks for your time :) I'm also discussing with Hyperledger team on this issue for this mistake. I tested to deploy contract with Ethers.js lib and that's work correctly ! (code available on link bellow) PS : i'm working on web3 4.1.1 |
I have the exact same issue as described by @louloub running on Ganache locally with the same exact version of the lib. |
Thanks @dmahajan1609 for letting us know. Thanks, |
I think I found the reason for this error (Ref: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Transferable_objects):
Here is some helpful discussion: paulmillr/noble-hashes#25 And I could replicate having this error by running some of the tests with Hi @dmahajan1609, I still need your exact scenario to ensure the PR will fix your edge case the same way it will fix for |
Description
As an blockchain developper, i'm actualy working on smart contract ERC-721 POC. I have a Hyperledger Besu blockchain working on my VM with 4 nodes, built with Qorum Quickstart (https://besu.hyperledger.org/stable/private-networks/tutorials/quickstart). This blockchain is configured for 0 fees.
I can develop, build, deploy, use my contract on Remix connected on my Hyperldeger Besu blockchain, but when i want to deploy the same smart contract from Visual Studio Code i have some mistakes with the signature of my transaction for deploy the contract.
Acceptance Criteria
Can build and sign my transaction for deploy the contract on my Hyperledger Besu blockchain.
Steps to Reproduce (Bug)
./resume.sh
from the blockchain folderContract code on Test.sol :
command to launch the script :
./compile.sh contract.sol
bash script :
This is the genesis file of it :
node public_tx.js
This is the content of the file :
result of console.log for dataBuild :
0x608060405234801561000f575f80fd5b506101468061001d5f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c806306661abd14610038578063d09de08a14610056575b5f80fd5b610040610060565b60405161004d9190610097565b60405180910390f35b61005e610065565b005b5f5481565b60015f8082825461007691906100dd565b92505081905550565b5f819050919050565b6100918161007f565b82525050565b5f6020820190506100aa5f830184610088565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6100e78261007f565b91506100f28361007f565b925082820190508082111561010a576101096100b0565b5b9291505056fea26469706673582212201c3c48dec99e9cf77132e4073590b6c55580f5c057b9a16678a26b3bd45b716c64736f6c63430008150033000000000000000000000000000000000000000000000000000000000000002F
result of console.log for account:
result of console.log for serializedTx:
Just after these console.log i have a error :
I maked some research on google but i don't find any topic with this error.
Expected behavior: can deploy my contract
Actual behavior: error displayed on console when sendSignedTransaction is used
Frequency: Every time i use this function
besu --version
] : using dockerimage: hyperledger/besu:${BESU_VERSION:-latest}
cat /etc/*release
] : Ubuntu 22.04.1 LTSuname -a
] : Linux blockchain 5.15.0-52-generic Update to latest #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linuxdocker version
] : 20.10.12Smart contract information (If you're reporting an issue arising from deploying or calling a smart contract, please supply related information)
solc --version
] : Version: 0.8.21+commit.d9974bed.Linux.g++Additional Information (Add any of the following or anything else that may be relevant)
The text was updated successfully, but these errors were encountered: