Skip to content

Commit c41baad

Browse files
committed
Convert asset IDs into uint64s
1 parent 557e228 commit c41baad

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cmd/tealdbg/cdtState.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ func makeGlobals(s *cdtState, preview bool) (desc []cdt.RuntimePropertyDescripto
839839
fields := prepareGlobals(s.globals)
840840
desc = make([]cdt.RuntimePropertyDescriptor, len(fields))
841841
for i, field := range fields {
842+
// We need to dynamically override this field with the proper value each step.
842843
if field.Name == "OpcodeBudget" {
843844
field.Value = strconv.Itoa(s.opcodeBudget)
844845
}
@@ -899,8 +900,16 @@ func makeInnerTxnImpl(txn *transactions.SignedTxnWithAD, groupIndexes []int, pre
899900

900901
logs := makeArray("logs", len(txn.EvalDelta.Logs), encodeLogsID(groupIndexes))
901902
innerTxns := makeArray("innerTxns", len(txn.EvalDelta.InnerTxns), encodeNestedInnerTxnID(groupIndexes))
902-
createdApplicationID := fieldDesc{Name: "CreatedApplicationID", Value: strconv.Itoa(int(txn.ApplicationID)), Type: "number"}
903-
configAsset := fieldDesc{Name: "CreatedAssetID", Value: strconv.Itoa(int(txn.ConfigAsset)), Type: "number"}
903+
createdApplicationID := fieldDesc{
904+
Name: "CreatedApplicationID",
905+
Value: strconv.FormatUint(uint64(txn.ApplicationID), 10),
906+
Type: "number",
907+
}
908+
configAsset := fieldDesc{
909+
Name: "CreatedAssetID",
910+
Value: strconv.FormatUint(uint64(txn.ConfigAsset), 10),
911+
Type: "number",
912+
}
904913
desc = append(
905914
desc,
906915
logs,

0 commit comments

Comments
 (0)