Commit 3c7c7f2
authored
Fix empty string encoding in AssetCreateTransaction (#3)
Empty strings for url, unitName, and assetName were being encoded
as "au": "", "un": "", "an": "" in MessagePack instead of being
omitted. Algorand's canonical encoding requires empty/default values
to be omitted entirely, causing signature verification failures.
Added !isEmpty checks to properly omit empty strings from encoding.1 parent c3ca935 commit 3c7c7f2
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments