taquito
taquito copied to clipboard
Deprecate `method` and `encode` in favor of `methodObject` and `encodeObject`
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.
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.
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.