taquito icon indicating copy to clipboard operation
taquito copied to clipboard

Deprecate `method` and `encode` in favor of `methodObject` and `encodeObject`

Open ac10n opened this issue 1 year ago • 2 comments

There are two ways in Taquito to convert values into Micheline representation. The one that is more likely to be found by people are method and encode.

These get arrays of objects. Because the micheline representation is essentially a tree, the user needs to send the proper ordering of values, which is not obvious when the tree gets complex.

The newer ones: methodObject and encodeObject get objects that are in the proper tree format. The mapping is more intuitive.

ac10n avatar Jun 08 '23 00:06 ac10n

Maybe we can do it in the future, but it would be hard to assess if users are using the method and encode right now.

Innkst avatar Jun 09 '23 21:06 Innkst

The changes needed for usage of method to methodObject have been implemented here https://github.com/ecadlabs/taquito/pull/2813

However the changes for encode to encodeObject have not.

dsawali avatar Jun 20 '24 17:06 dsawali