Describe the bug
The Crafted CTXs tab is missing on Blockscout if the submitCTX precompiled is called within a contract's constructor during deployment.
To Reproduce
Steps to reproduce the behavior:
- Clone bite-solidity repo
cd examples/role-based-value-registry/
- Create
.env with ENDPOINT and PRIVATE_KEY variables
yarn install
yarn compile
yarn hardhat run scripts/deployAndTest.ts --network custom
- See the problem in blockscout
Actual behavior
The tab is not displayed for deployment transactions, although the RPC call bite_getCraftedCtxs successfully returns the CTX hash.
Expected behavior
Blockscout should display the Crafted CTXs tab for deployment transactions if a CTX was generated during the execution of the constructor.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
curl -X POST http://10.3.155.161:10003 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc":"2.0",
"method":"bite_getCraftedCtxs",
"params":["0x97f077dfe4a626627d8c2182cb78bec2c641991dfe91dc502318edc14e06cefa"],
"id":27
}'
{"id":27,"jsonrpc":"2.0","result":["788b73871d344d9d3fa13f29de0b4cdf11f9df3e50ab65256c02303d4ad837ad"]}
Describe the bug
The
Crafted CTXstab is missing on Blockscout if thesubmitCTXprecompiled is called within a contract's constructor during deployment.To Reproduce
Steps to reproduce the behavior:
cd examples/role-based-value-registry/.envwithENDPOINTandPRIVATE_KEYvariablesyarn installyarn compileyarn hardhat run scripts/deployAndTest.ts --network customActual behavior
The tab is not displayed for deployment transactions, although the RPC call
bite_getCraftedCtxssuccessfully returns the CTX hash.Expected behavior
Blockscout should display the
Crafted CTXstab for deployment transactions if a CTX was generated during the execution of the constructor.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context