@layerzerolabs/ton-sdk-tools 3.0.21-ton.0 → 3.0.22-ton.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -100,6 +100,7 @@ function tonTypeToTStype(tonType) {
|
|
|
100
100
|
return "bigint";
|
|
101
101
|
case "cell":
|
|
102
102
|
case "cellRef":
|
|
103
|
+
case "addressList":
|
|
103
104
|
return "Cell";
|
|
104
105
|
case "tuple":
|
|
105
106
|
return "Tuple";
|
|
@@ -144,6 +145,8 @@ function tonTypeToTonGetterName(tonType) {
|
|
|
144
145
|
return "cl::get<address>";
|
|
145
146
|
case "cell":
|
|
146
147
|
case "cell_ref":
|
|
148
|
+
case "addressList":
|
|
149
|
+
case "address_list":
|
|
147
150
|
return "cl::get<cellRef>";
|
|
148
151
|
case "tuple":
|
|
149
152
|
case "obj_ref":
|
|
@@ -2735,6 +2738,8 @@ export async function runtimeDecoder(contract: SandboxContract<TonContractWrappe
|
|
|
2735
2738
|
let newCellFieldType = await TonObjectUnwrapper.getTypeOf(contract, field)
|
|
2736
2739
|
if (newCellFieldType === 'NULL') {
|
|
2737
2740
|
newCellFieldType = 'cl::t::cellRef'
|
|
2741
|
+
} else {
|
|
2742
|
+
newCellFieldType = keyMap[newCellFieldType] ?? newCellFieldType
|
|
2738
2743
|
}
|
|
2739
2744
|
jsonField.fieldType = newCellFieldType
|
|
2740
2745
|
tonObjectDefCopy[key] = jsonField
|