Skip to content

Commit

Permalink
Correct gas log ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Jan 26, 2025
1 parent 2c0bd70 commit 1600408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chainweb/Pact5/TransactionExec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ dumpGasLogs :: (Logger logger)
-> IO ()
dumpGasLogs ctx txHash maybeGasLogger gasEnv = do
forM_ ((,) <$> _geGasLog gasEnv <*> maybeGasLogger) $ \(gasLogRef, gasLogger) -> do
gasLogs <- readIORef gasLogRef
gasLogs <- reverse <$> readIORef gasLogRef
let prettyLogs = Pact5.prettyGasLogs (_geGasModel gasEnv) (_gleArgs <$> gasLogs)
let logger = addLabel ("transactionExecContext", ctx) $ addLabel ("cmdHash", hashToText txHash) $ gasLogger
logFunctionText logger L.Debug $ "gas logs: " <> prettyLogs
Expand Down

0 comments on commit 1600408

Please sign in to comment.