smartcontractkit / smartcontractkit/chainlink-starknet

Prefix all on-chain error messages with contract/namespace

Open
#156 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
60
Forks
31
Avg merge
3d 3h
Merged PRs (30d)
2

Description

We should prefix all error messages with contract/namespace like so:

    with_attr error_message("Aggregator: Total amount due exceeds the balance"):

Originally posted by @krebernisak in https://github.com/smartcontractkit/chainlink-starknet/pull/146#discussion_r989988962

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the on-chain error messages for the error_message pattern shown in the issue and identify the contract or namespace associated with each one. Update the messages to use the requested prefix, then verify that all on-chain errors follow the same format.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.