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
On extrinsic fail, its not possible to assert pallet's error varian.
In the example below, its not possible to assert alliance.AllianceNotYetInitialized error variant. SpRuntimeDispatchError type with full error object can be asserted, which refers to alliance pallet (index 50) and error variant index (error 0x00000000).
Example:
The text was updated successfully, but these errors were encountered:
The reason why those values can not be asserted is because type and details attributes are actually not part of the Event. Those are added in the UI from the metadata.
On extrinsic fail, its not possible to assert pallet's error varian.
In the example below, its not possible to assert
alliance.AllianceNotYetInitialized
error variant.SpRuntimeDispatchError
type with full error object can be asserted, which refers to alliance pallet (index 50) and error variant index (error 0x00000000).Example:
The text was updated successfully, but these errors were encountered: