Skip to content

Commit

Permalink
Merge pull request #279 from algorandfoundation/fix/algod-image-patch
Browse files Browse the repository at this point in the history
fix: patch to propagate upon algokit 2.0.6 release (removal of ConsensusProtocol setting from network config)
  • Loading branch information
neilcampbell authored May 22, 2024
2 parents debfb34 + 154e9cf commit e9682db
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/transaction/transaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,15 +320,10 @@ describe('transaction', () => {
)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (e: any) {
const regex = /RewardsBase:(\d+)/
const match = e.traces[0].message.match(regex)
expect(match).toBeDefined()
const rewardsBase = parseInt(match[1], 10)
expect(e.traces[0].message).toEqual(
`transaction ${txn2.txID()}: overspend (account ${
testAccount.addr
}, data {AccountBaseData:{Status:Offline MicroAlgos:{Raw:9998000} RewardsBase:${rewardsBase} RewardedMicroAlgos:{Raw:0} AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0 TotalAppParams:0 TotalAppLocalStates:0 TotalAssetParams:0 TotalAssets:0 TotalBoxes:0 TotalBoxBytes:0} VotingData:{VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] StateProofID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0}}, tried to spend {9999999999999})`,
const messageRegex = new RegExp(
`transaction ${txn2.txID()}: overspend \\(account ${testAccount.addr}, data \\{.*\\}, tried to spend \\{9999999999999\\}\\)`,
)
expect(e.traces[0].message).toMatch(messageRegex)
}
})
})
Expand Down

0 comments on commit e9682db

Please sign in to comment.