Skip to content

Commit

Permalink
Add doc link to state budget limit error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyoung-an committed Dec 27, 2024
1 parent 23ce7a7 commit c6143d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,8 @@ class DB {
return {
code: TxResultCode.GAS_EXCEED_STATE_BUDGET_LIMIT_FOR_FREE_TIER,
message: `Exceeded state budget limit for free tier ` +
`(${stateFreeTierUsage[StateLabelProperties.TREE_BYTES]} > ${budgets.freeStateBudget})`
`(${stateFreeTierUsage[StateLabelProperties.TREE_BYTES]} > ${budgets.freeStateBudget}).\n` +
`For more information see https://docs.ainetwork.ai/ain-blockchain/staking`
};
}
// else, we allow apps without stakes
Expand All @@ -1688,7 +1689,8 @@ class DB {
return {
code: TxResultCode.GAS_EXCEED_STATE_BUDGET_LIMIT_FOR_APP,
message: `Exceeded state budget limit for app ${appName} ` +
`(${appStateUsage[StateLabelProperties.TREE_BYTES]} > ${singleAppStateBudget})`
`(${appStateUsage[StateLabelProperties.TREE_BYTES]} > ${singleAppStateBudget}).\n` +
`For more information see https://docs.ainetwork.ai/ain-blockchain/staking`
};
}
}
Expand Down

0 comments on commit c6143d3

Please sign in to comment.