Skip to content

Commit

Permalink
chore: align eip712 generation with core (#153)
Browse files Browse the repository at this point in the history
* feat: use json string for message in eip712

* chore: revert tx type to separate contexts

* chore: align eip712 wrapper with injective-core

* chore: update mod

* chore: align typedata.go

* fix: use txExtensionOptionI for new sdk

* fix: return err no message to prevent outOfBound exception

* chore: remove signable type fn
  • Loading branch information
vinhphuctadang authored Sep 18, 2023
1 parent 986e2b0 commit 131d2a4
Show file tree
Hide file tree
Showing 6 changed files with 573 additions and 123 deletions.
201 changes: 153 additions & 48 deletions chain/tokenfactory/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions chain/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
&ExtensionOptionsWeb3Tx{},
)

registry.RegisterInterface("injective.types.v1beta1.ExtensionOptionI", (*tx.ExtensionOptionI)(nil))
registry.RegisterInterface("injective.types.v1beta1.ExtensionOptionI", (*tx.TxExtensionOptionI)(nil))
registry.RegisterImplementations(
(*tx.ExtensionOptionI)(nil),
(*tx.TxExtensionOptionI)(nil),
&ExtensionOptionsWeb3Tx{},
)
}
Loading

0 comments on commit 131d2a4

Please sign in to comment.