@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.mjs
CHANGED
|
@@ -78,6 +78,7 @@ function tonTypeToTStype(tonType) {
|
|
|
78
78
|
return "bigint";
|
|
79
79
|
case "cell":
|
|
80
80
|
case "cellRef":
|
|
81
|
+
case "addressList":
|
|
81
82
|
return "Cell";
|
|
82
83
|
case "tuple":
|
|
83
84
|
return "Tuple";
|
|
@@ -122,6 +123,8 @@ function tonTypeToTonGetterName(tonType) {
|
|
|
122
123
|
return "cl::get<address>";
|
|
123
124
|
case "cell":
|
|
124
125
|
case "cell_ref":
|
|
126
|
+
case "addressList":
|
|
127
|
+
case "address_list":
|
|
125
128
|
return "cl::get<cellRef>";
|
|
126
129
|
case "tuple":
|
|
127
130
|
case "obj_ref":
|
|
@@ -2713,6 +2716,8 @@ export async function runtimeDecoder(contract: SandboxContract<TonContractWrappe
|
|
|
2713
2716
|
let newCellFieldType = await TonObjectUnwrapper.getTypeOf(contract, field)
|
|
2714
2717
|
if (newCellFieldType === 'NULL') {
|
|
2715
2718
|
newCellFieldType = 'cl::t::cellRef'
|
|
2719
|
+
} else {
|
|
2720
|
+
newCellFieldType = keyMap[newCellFieldType] ?? newCellFieldType
|
|
2716
2721
|
}
|
|
2717
2722
|
jsonField.fieldType = newCellFieldType
|
|
2718
2723
|
tonObjectDefCopy[key] = jsonField
|