mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 02:11:01 +00:00
Zero sized types (#121)
* Fix zero sized types. * Cleanup. * Expose genesis hash. * Fix clippy warnings. * Readd default type sizes for now. * Cleanup ret type.
This commit is contained in:
@@ -54,9 +54,8 @@ pub fn call(s: Structure) -> TokenStream {
|
||||
const FUNCTION: &'static str = #call_name;
|
||||
fn events_decoder(
|
||||
decoder: &mut #subxt::EventsDecoder<T>,
|
||||
) -> Result<(), #subxt::EventsError> {
|
||||
decoder.#with_module()?;
|
||||
Ok(())
|
||||
) {
|
||||
decoder.#with_module();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,9 +124,8 @@ mod tests {
|
||||
const FUNCTION: &'static str = "transfer";
|
||||
fn events_decoder(
|
||||
decoder: &mut substrate_subxt::EventsDecoder<T>,
|
||||
) -> Result<(), substrate_subxt::EventsError> {
|
||||
decoder.with_balances()?;
|
||||
Ok(())
|
||||
) {
|
||||
decoder.with_balances();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user