Closed ToToDoDo closed 1 year ago
Same issue. If selected GoQuorum client in npx quorum-dev-quickstart
command (all other options set by default), I got same error:
lex@quorumubuntu22:~/sources/quorum-test-network/smart_contracts/privacy/scripts$ node private_tx.js
Creating contract...
Waiting for transaction to be mined ...
Getting contractAddress from txHash: {
blockHash: '0x6e06c5d5c112cead10ee6ba115e03c60c485b9d3eaa6919f77e0bbd141e25d84',
blockNumber: 6,
contractAddress: '0x00fFD3548725459255f1e78A61A07f1539Db0271',
cumulativeGasUsed: 0,
from: '0xf0e2db6c8dc6c681bb5d6ad121a107f300e9b2b5',
gasUsed: 0,
isPrivacyMarkerTransaction: false,
logs: [
{
address: '0x00fFD3548725459255f1e78A61A07f1539Db0271',
topics: [Array],
data: '0x000000000000000000000000f0e2db6c8dc6c681bb5d6ad121a107f300e9b2b5000000000000000000000000000000000000000000000000000000000000002f',
blockNumber: 6,
transactionHash: '0xb7ef6289395e8ad3d49bb91dfdb12678c92f6c43b431a797203bd396fe1f6934',
transactionIndex: 0,
blockHash: '0x6e06c5d5c112cead10ee6ba115e03c60c485b9d3eaa6919f77e0bbd141e25d84',
logIndex: 0,
removed: false,
id: 'log_68481d4d'
}
],
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000002001000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
status: true,
to: null,
transactionHash: '0xb7ef6289395e8ad3d49bb91dfdb12678c92f6c43b431a797203bd396fe1f6934',
transactionIndex: 0,
type: '0x0'
}
Address of transaction: 0x00fFD3548725459255f1e78A61A07f1539Db0271
Use the smart contracts 'get' function to read the contract's constructor initialized value ..
Member1 obtained value at deployed contract is: 47
Use the smart contracts 'set' function to update that value to 123 .. - from member1 to member3
Error: Returned error: method handler crashed
at Object.ErrorResponse (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/web3-core-helpers/lib/errors.js:28:19)
at /home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/web3-core-requestmanager/lib/index.js:302:36
at request.onreadystatechange (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/web3-providers-http/lib/index.js:98:13)
at XMLHttpRequestEventTarget.dispatchEvent (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
data: null
}
If selected Hyperledger Besu client, then got error with minimum gas price:
lex@quorumubuntu22:~/sources/quorum-test-network/smart_contracts/privacy/scripts$ node private_tx.js
Creating contract...
Error: Returned error: Gas price below configured minimum gas price
at Object.ErrorResponse (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/web3-core-helpers/lib/errors.js:28:19)
at /home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/web3-core-requestmanager/lib/index.js:302:36
at request.onreadystatechange (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/web3-providers-http/lib/index.js:98:13)
at XMLHttpRequestEventTarget.dispatchEvent (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/home/lex/sources/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
data: null
}
@ToToDoDo did you find any solution?
Previous version works well, so just use:
npx quorum-dev-quickstart@0.1.2
same here, running the hyperledger besu client. Also, the tutorial tells the user to run npm install
inside the ./smart_contracts directory but there is not a package.json file there. You can find it under ./smart_contracts/privacy .
@antonydenyer should we revert #244 to fix the above?
That's an interesting bug.
The root cause is https://github.com/ConsenSys/quorum/blob/fbfb5dd12a8c2b8abd053f858ef539ab38196b75/core/vm/operations_acl.go#L66
This is happening because the address is indeed absent in the public statedb! Why are we seeing it now? It was introduced in the Berlin fork. The workaround is to set the Berlin fork block to a very high value. The correct answer is to fix the bug https://github.com/Consensys/quorum/issues/1657
It was introduce in https://github.com/Consensys/quorum-dev-quickstart/pull/250
Thank you @antonydenyer :)
@ToToDoDo @imlex I've pushed a fix #259 for the goquorum side of things (bandaid albeit till its fixed in the goq codebase) to master.
Re Besu: Am waiting for #259 to get merged and I'll cut a fresh release which should fix both
Closing this as this should be fixed in 0.1.4
After I start a goquorum network with private tnx support by quorum-dev-quickstart, I deployed private contract successfully. But when I call set() method with privateFor parameter, I got an error. And I can't get tnx of contract deploying detail by eth.getPrivateTransaction().
The contract which I deployed was copied from: https://docs.goquorum.consensys.net/tutorials/send-private-transaction