multiversx / mx-sdk-js-core

MultiversX SDK for interacting with the MultiversX blockchain (in general) and Smart Contracts (in particular).
https://multiversx.github.io/mx-sdk-js-core/
Other
60 stars 37 forks source link

Add support for `counted-variadic` type in ABI parsing #316

Closed raress96 closed 1 year ago

raress96 commented 1 year ago

The Rust SDK supports the MultiValueManagedVecCounted type: https://github.com/multiversx/mx-sdk-rs/blob/master/framework/base/src/types/managed/multi_value/multi_value_managed_vec_counted.rs

Which in the ABI appears like a counted-variadic (eg: counted-variadic<BigUint>).

If this type appears in the ABI file, the SDK JS Core can no longer parse that ABI.

The type is similar to the variadic type, just that it has a U32 (length of the vec) before the elements. It would be nice if support for this could be implemented.

andreibancioiu commented 1 year ago

Fixed in https://github.com/multiversx/mx-sdk-js-core/releases/tag/v12.8.0.