From 40beb1ec449dea868ce5b967bb48a9772759187b Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Tue, 17 Dec 2024 10:03:27 +0800 Subject: [PATCH] Remove useless `storage_growth` --- precompiles/conviction-voting/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/precompiles/conviction-voting/src/lib.rs b/precompiles/conviction-voting/src/lib.rs index 253b76fd5b..19bb473e12 100644 --- a/precompiles/conviction-voting/src/lib.rs +++ b/precompiles/conviction-voting/src/lib.rs @@ -135,7 +135,7 @@ where let origin = Runtime::AddressMapping::into_account_id(caller); let call = ConvictionVotingCall::::vote { poll_index, vote }.into(); - >::try_dispatch(handle, Some(origin).into(), call, 0)?; + >::try_dispatch(handle, Some(origin).into(), call)?; event.record(handle)?; @@ -289,7 +289,7 @@ where let origin = Runtime::AddressMapping::into_account_id(caller); let call = ConvictionVotingCall::::remove_vote { class, index }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call)?; event.record(handle)?; @@ -333,7 +333,7 @@ where index, }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call)?; event.record(handle)?; @@ -406,7 +406,7 @@ where let origin = Runtime::AddressMapping::into_account_id(caller); let call = ConvictionVotingCall::::undelegate { class }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call)?; event.record(handle)?; @@ -438,7 +438,7 @@ where let origin = Runtime::AddressMapping::into_account_id(handle.context().caller); let call = ConvictionVotingCall::::unlock { class, target }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call)?; event.record(handle)?;