Skip to content

Commit

Permalink
adding reminder to possibly modify argEnums method with some automati…
Browse files Browse the repository at this point in the history
…c thing later
  • Loading branch information
barnjamin committed Dec 14, 2022
1 parent a913435 commit d9b48d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/opdoc/opdoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ func fieldsAndTypes(group logic.FieldGroup) ([]string, string) {
}

func argEnums(name string) ([]string, string) {
// reminder: this needs to be manually updated every time
// a new opcode is added with an associated FieldGroup
// it'd be nice to have this auto-update
switch name {
case "txn", "gtxn", "gtxns", "itxn", "gitxn":
return fieldsAndTypes(logic.TxnFields)
Expand Down

0 comments on commit d9b48d5

Please sign in to comment.