Skip to content

Commit 4615f6c

Browse files
authored
Merge pull request #1342 from ainblockchain/bugfix/jiyoung/state-budget-error
Add doc link to state budget limit error message
2 parents 23ce7a7 + c6143d3 commit 4615f6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

db/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,8 @@ class DB {
16781678
return {
16791679
code: TxResultCode.GAS_EXCEED_STATE_BUDGET_LIMIT_FOR_FREE_TIER,
16801680
message: `Exceeded state budget limit for free tier ` +
1681-
`(${stateFreeTierUsage[StateLabelProperties.TREE_BYTES]} > ${budgets.freeStateBudget})`
1681+
`(${stateFreeTierUsage[StateLabelProperties.TREE_BYTES]} > ${budgets.freeStateBudget}).\n` +
1682+
`For more information see https://docs.ainetwork.ai/ain-blockchain/staking`
16821683
};
16831684
}
16841685
// else, we allow apps without stakes
@@ -1688,7 +1689,8 @@ class DB {
16881689
return {
16891690
code: TxResultCode.GAS_EXCEED_STATE_BUDGET_LIMIT_FOR_APP,
16901691
message: `Exceeded state budget limit for app ${appName} ` +
1691-
`(${appStateUsage[StateLabelProperties.TREE_BYTES]} > ${singleAppStateBudget})`
1692+
`(${appStateUsage[StateLabelProperties.TREE_BYTES]} > ${singleAppStateBudget}).\n` +
1693+
`For more information see https://docs.ainetwork.ai/ain-blockchain/staking`
16921694
};
16931695
}
16941696
}

0 commit comments

Comments
 (0)