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

Insert transaction for internally created contracts marking contract created #57

Open
robcxyz opened this issue Nov 1, 2022 · 0 comments

Comments

@robcxyz
Copy link
Contributor

robcxyz commented Nov 1, 2022

Per title, contracts that are created within contracts need to have an extra transaction inserted into DB to mark the Tx that the contract was created on. Currently there is no such Tx as is the case here:

https://tracker.v2.berlin.ams.vultr.icon.community/contract/cxedbeb72da00600334baa2430f652747c5def0c8f

This contract has only internal Txs and is missing the link to the contract creation Tx. That Tx that created the contract needs to have a unique PK which for Tx table is both the hash and log index. We should be inserting a Tx with a unique PK as there is no field for representing the score_address as technically that should be populated by the contract that created the contract, not the created contract.

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

1 participant