Skip to content

Commit

Permalink
Add TODO for getting rid of mock data in favor of storage & indexer i…
Browse files Browse the repository at this point in the history
…nterfaces
  • Loading branch information
m-Peter committed Jan 6, 2024
1 parent fc18d38 commit 6173b96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ func (s *BlockChainAPI) GetTransactionReceipt(
ctx context.Context,
hash common.Hash,
) (map[string]interface{}, error) {
// TODO(m-Peter) These are mock data just for fleshing out the
// fields involved in the returned value. Ideally we would like to
// defined interfaces for the storage & indexer services, so that
// we can proceed with some tests, and get rid of these mock data.
receipt := map[string]interface{}{}
txIndex := uint64(64)
blockHash := common.HexToHash("0x1d59ff54b1eb26b013ce3cb5fc9dab3705b415a67127a003c3e61eb445bb8df2")
Expand Down

0 comments on commit 6173b96

Please sign in to comment.