Skip to content

Commit

Permalink
Merge pull request #1342 from ainblockchain/bugfix/jiyoung/state-budg…
Browse files Browse the repository at this point in the history
…et-error

Add doc link to state budget limit error message
  • Loading branch information
platfowner authored Dec 30, 2024
2 parents 23ce7a7 + c6143d3 commit 4615f6c
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 4615f6c

Please sign in to comment.