You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can't compare subxt::tx::Payload<AddCitizen> with subxt::tx::Payload<AddCitizen>
the trait PartialEq is not implemented for subxt::tx::Payload<AddCitizen>
This sounds like a good use case to cover with our Payloads.
I'll look at implementing this for types that implement PartialEq (or Eq). This may lead to changes being made to our codegen, since we'll have to double-check that the types we expose can implement partialEq.
In the meanwhile, we do expose a few methods on the concrete Payload type which may help you work around this: call_data, pallet_name, call_name. However, I would suggest waiting for a PR and subxt release; since the workaround implies removing the generic T over TxPayload.
It gives following error in leptos:
can't compare
subxt::tx::Payload<AddCitizen>
withsubxt::tx::Payload<AddCitizen>
the trait
PartialEq
is not implemented forsubxt::tx::Payload<AddCitizen>
Leptos code:
The text was updated successfully, but these errors were encountered: