Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Let transaction_cids.dst be null #70

@i-norden

Description

@i-norden

dst address is null in the case of a contract deployment, right now we are using a "0" representation of that 0x00000000000000000000 which is problematic for two reasons

  1. It takes up more space than NULL
  2. Sometimes the dst actually is 0x00000000000000000000 e.g. in the case of a burn transaction, and we want to be able to differentiate this

First,
UPDATE eth.transaction_cids SET dst = NULL WHERE dst = '0x00000000000000000000';

Then,
ALTER eth.transaction_cids ALTER COLUMN dst SET NOT NULL;

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