Skip to content

Commit

Permalink
license check, review dog fiddling
Browse files Browse the repository at this point in the history
  • Loading branch information
jannotti committed Jan 3, 2024
1 parent 42f43a2 commit 3384cf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data/basics/serr.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2019-2023 Algorand, Inc.
// Copyright (C) 2019-2024 Algorand, Inc.
// This file is part of go-algorand
//
// go-algorand is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion data/basics/serr_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2019-2023 Algorand, Inc.
// Copyright (C) 2019-2024 Algorand, Inc.
// This file is part of go-algorand
//
// go-algorand is free software: you can redistribute it and/or modify
Expand Down
6 changes: 3 additions & 3 deletions data/transactions/logic/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -1009,16 +1009,16 @@ func (cx *EvalContext) evalError(err error) error {
pc, det := cx.pcDetails()
details := fmt.Sprintf("pc=%d, opcodes=%s", pc, det)

serr := basics.Annotate(err,
err = basics.Annotate(err,
"pc", pc,
"group-index", cx.groupIndex,
"eval-states", cx.evalStates())
if cx.runMode == ModeApp {
details = fmt.Sprintf("app=%d %s", cx.appID, details)
basics.Annotate(serr, "app-index", cx.appID)
err = basics.Annotate(err, "app-index", cx.appID)
}

return EvalError{serr, details, cx.runMode == ModeSig}
return EvalError{err, details, cx.runMode == ModeSig}
}

type evalState struct {
Expand Down

0 comments on commit 3384cf2

Please sign in to comment.