-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Description
While switching to 0.50 we realized we need to configure custom fields encoders in our app to avoid breaking changes in amino json sign mode.
However it is not currently possible to access the encoder created by NewTxConfig
/ NewTxConfigWithOptions
, requiring us to duplicate the SDK's logic to create the TxConfig
.
I see 2 possible approaches:
- Accept an
AminoEncoder
inconfigOpts
. The problem with that approach is that theEncoderOptions
share some resolvers derived from the signing options that are normally just created by default. So specifying an explicit encoder would require the user to still duplicate some default options handling logic from the SDK, risking getting out of sync when things change. - Expose the
AminoEncoder
from the returnedTxConfig
/HandlerMap
Metadata
Metadata
Assignees
Labels
No labels