From c6143d3aae9747ab5eccf35ca4cbd6e5cd28a82b Mon Sep 17 00:00:00 2001 From: jiyoung Date: Fri, 27 Dec 2024 14:36:01 +0900 Subject: [PATCH] Add doc link to state budget limit error message --- db/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/db/index.js b/db/index.js index deee3b9cc..6e495027c 100644 --- a/db/index.js +++ b/db/index.js @@ -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 @@ -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` }; } }