serai-dex / serai

Other
242 stars 45 forks source link

Use the serai_abi::Call in the actual Transaction type #572

Closed kayabaNerve closed 3 weeks ago

kayabaNerve commented 4 weeks ago

We prior required they had the same encoding, yet this ensures they do by making them one and the same. This does require an large, ugly, From/TryInto block which is deemed preferable for moving this more and more into syntax (from semantics).

Further improvements (notably re: Extra) is possible, and this already lets us strip some members from the Call enum.