Skip to content

Missing "Crafted CTXs" tab when submitCTX is called in contract constructor #131

@karinayavorska

Description

@karinayavorska

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:

  1. Clone bite-solidity repo
  2. cd examples/role-based-value-registry/
  3. Create .env with ENDPOINT and PRIVATE_KEY variables
  4. yarn install
  5. yarn compile
  6. yarn hardhat run scripts/deployAndTest.ts --network custom
  7. 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.

Image
  • The CTX:
Image

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"]}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions