Standardize error message format across contracts and transactions#582
Merged
joshuahannan merged 3 commits intomasterfrom Mar 24, 2026
Merged
Standardize error message format across contracts and transactions#582joshuahannan merged 3 commits intomasterfrom
joshuahannan merged 3 commits intomasterfrom
Conversation
This was referenced Mar 17, 2026
…concat() Converts all remaining error messages in contracts and transactions from .concat() string chaining to Cadence string interpolation \() style, consistent with the format established in the first set of error updates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
f1b200a to
e6dab6d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ContractName.Resource.function:prefixes to all error messages in core contracts so panics are immediately traceable to their source.concat()string chaining in error messages to Cadence\()string interpolation for consistency and readabilityContracts updated
FlowIDTableStaking.cdcFlowFees.cdcFlowToken.cdcFlowServiceAccount.cdcFlowStakingCollection.cdcLockedTokens.cdcStakingProxy.cdcNodeVersionBeacon.cdcRandomBeaconHistory.cdcepochs/FlowClusterQC.cdcepochs/FlowDKG.cdcepochs/FlowEpoch.cdcTransactions updated
flowToken/(mint, burn, transfer, get_balance)accounts/(add_key, create_new_account, setup_coa, deposit_to_coa, get_coa_balance, revoke_key)dkg/(send_final_submission, send_empty_final_submission)epoch/admin/recover_epochlockedTokens/(withdraw_tokens, deposit_tokens, recover_lease_tokens)stakingCollection/(register_node, create_machine_account, transfer_node, register_node_old)stakingProxy/register_nodeTest plan
flow test tests/dkg_test.cdc— all 18 tests passflow test tests/random_beacon_history_test.cdc— all 17 tests passflow test tests/transactionScheduler_test.cdc— all 10 tests pass🤖 Generated with Claude Code