Skip to content

Insert transaction for internally created contracts marking contract created  #57

Description

@robcxyz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions