Skip to content

Commit

Permalink
fix: state diff is empty (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth authored Mar 1, 2024
1 parent 68ece44 commit a19cdb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checks/check-state-changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a19cdb4

Please sign in to comment.