From a19cdb44c654943b1d2048f9d2fa3e497586af20 Mon Sep 17 00:00:00 2001 From: gzeon Date: Sat, 2 Mar 2024 00:16:09 +0800 Subject: [PATCH] fix: state diff is empty (#127) --- checks/check-state-changes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checks/check-state-changes.ts b/checks/check-state-changes.ts index f056e5629a..a07b1934a9 100644 --- a/checks/check-state-changes.ts +++ b/checks/check-state-changes.ts @@ -24,8 +24,8 @@ export const checkStateChanges: ProposalCheck = { // (2) the `proposal.executed` change of the governor, because this will be consistent across // all proposals and mainly add noise to the output if (!sim.transaction.transaction_info.state_diff) { - console.log('State diff is empty, printing sim response') - console.log(JSON.stringify(sim, null, 2)) + const warnings = `State diff is empty` + return { info: [], warnings: [warnings], errors: [] } } const stateDiffs = sim.transaction.transaction_info.state_diff.reduce((diffs, diff) => { const addr = getAddress(diff.raw[0].address)