From 6592dbd99565fca0c87bcc80d8c6801c8e391dae Mon Sep 17 00:00:00 2001 From: failfmi Date: Tue, 11 Jun 2024 15:55:05 +0300 Subject: [PATCH] style: imports --- frame/balances/call_force_adjust_total_issuance.go | 1 + frame/balances/call_force_set_balance.go | 1 + frame/balances/call_force_transfer.go | 1 + frame/balances/call_force_unreserve.go | 1 + frame/balances/call_transfer_all.go | 1 + frame/balances/call_transfer_allow_death.go | 1 + frame/balances/call_transfer_keep_alive.go | 1 + frame/balances/call_upgrade_accounts.go | 1 + frame/balances/events.go | 1 + frame/balances/module.go | 3 ++- frame/balances/types/adjust_direction.go | 1 + primitives/types/flags.go | 3 ++- runtime/templates/poa/sudo_call_sudo_unchecked_weight_test.go | 3 ++- 13 files changed, 16 insertions(+), 3 deletions(-) diff --git a/frame/balances/call_force_adjust_total_issuance.go b/frame/balances/call_force_adjust_total_issuance.go index 25bf0edc..d08abe39 100644 --- a/frame/balances/call_force_adjust_total_issuance.go +++ b/frame/balances/call_force_adjust_total_issuance.go @@ -2,6 +2,7 @@ package balances import ( "bytes" + sc "github.com/LimeChain/goscale" "github.com/LimeChain/gosemble/constants" "github.com/LimeChain/gosemble/frame/balances/types" diff --git a/frame/balances/call_force_set_balance.go b/frame/balances/call_force_set_balance.go index 7e509575..6f595f47 100644 --- a/frame/balances/call_force_set_balance.go +++ b/frame/balances/call_force_set_balance.go @@ -2,6 +2,7 @@ package balances import ( "bytes" + sc "github.com/LimeChain/goscale" "github.com/LimeChain/gosemble/constants" primitives "github.com/LimeChain/gosemble/primitives/types" diff --git a/frame/balances/call_force_transfer.go b/frame/balances/call_force_transfer.go index 43833c82..4316fc4e 100644 --- a/frame/balances/call_force_transfer.go +++ b/frame/balances/call_force_transfer.go @@ -2,6 +2,7 @@ package balances import ( "bytes" + sc "github.com/LimeChain/goscale" "github.com/LimeChain/gosemble/frame/balances/types" primitives "github.com/LimeChain/gosemble/primitives/types" diff --git a/frame/balances/call_force_unreserve.go b/frame/balances/call_force_unreserve.go index 90f15736..754bbb9f 100644 --- a/frame/balances/call_force_unreserve.go +++ b/frame/balances/call_force_unreserve.go @@ -2,6 +2,7 @@ package balances import ( "bytes" + sc "github.com/LimeChain/goscale" primitives "github.com/LimeChain/gosemble/primitives/types" ) diff --git a/frame/balances/call_transfer_all.go b/frame/balances/call_transfer_all.go index f3fb00a3..d48b78b7 100644 --- a/frame/balances/call_transfer_all.go +++ b/frame/balances/call_transfer_all.go @@ -2,6 +2,7 @@ package balances import ( "bytes" + sc "github.com/LimeChain/goscale" "github.com/LimeChain/gosemble/frame/balances/types" primitives "github.com/LimeChain/gosemble/primitives/types" diff --git a/frame/balances/call_transfer_allow_death.go b/frame/balances/call_transfer_allow_death.go index e02b4b69..58b2b761 100644 --- a/frame/balances/call_transfer_allow_death.go +++ b/frame/balances/call_transfer_allow_death.go @@ -2,6 +2,7 @@ package balances import ( "bytes" + sc "github.com/LimeChain/goscale" "github.com/LimeChain/gosemble/frame/balances/types" primitives "github.com/LimeChain/gosemble/primitives/types" diff --git a/frame/balances/call_transfer_keep_alive.go b/frame/balances/call_transfer_keep_alive.go index f7311453..fd789924 100644 --- a/frame/balances/call_transfer_keep_alive.go +++ b/frame/balances/call_transfer_keep_alive.go @@ -2,6 +2,7 @@ package balances import ( "bytes" + sc "github.com/LimeChain/goscale" "github.com/LimeChain/gosemble/frame/balances/types" primitives "github.com/LimeChain/gosemble/primitives/types" diff --git a/frame/balances/call_upgrade_accounts.go b/frame/balances/call_upgrade_accounts.go index aaac3070..d70d8c5b 100644 --- a/frame/balances/call_upgrade_accounts.go +++ b/frame/balances/call_upgrade_accounts.go @@ -2,6 +2,7 @@ package balances import ( "bytes" + sc "github.com/LimeChain/goscale" primitives "github.com/LimeChain/gosemble/primitives/types" ) diff --git a/frame/balances/events.go b/frame/balances/events.go index bed9461c..98bb5145 100644 --- a/frame/balances/events.go +++ b/frame/balances/events.go @@ -3,6 +3,7 @@ package balances import ( "bytes" "errors" + sc "github.com/LimeChain/goscale" "github.com/LimeChain/gosemble/frame/balances/types" primitives "github.com/LimeChain/gosemble/primitives/types" diff --git a/frame/balances/module.go b/frame/balances/module.go index c1af1e59..102aaf8d 100644 --- a/frame/balances/module.go +++ b/frame/balances/module.go @@ -2,13 +2,14 @@ package balances import ( "encoding/hex" + "reflect" + sc "github.com/LimeChain/goscale" "github.com/LimeChain/gosemble/constants" "github.com/LimeChain/gosemble/frame/balances/types" "github.com/LimeChain/gosemble/hooks" "github.com/LimeChain/gosemble/primitives/log" primitives "github.com/LimeChain/gosemble/primitives/types" - "reflect" ) const ( diff --git a/frame/balances/types/adjust_direction.go b/frame/balances/types/adjust_direction.go index 942d2285..b44c8ebe 100644 --- a/frame/balances/types/adjust_direction.go +++ b/frame/balances/types/adjust_direction.go @@ -3,6 +3,7 @@ package types import ( "bytes" "errors" + sc "github.com/LimeChain/goscale" ) diff --git a/primitives/types/flags.go b/primitives/types/flags.go index ae4a8da0..c5f3bb41 100644 --- a/primitives/types/flags.go +++ b/primitives/types/flags.go @@ -2,8 +2,9 @@ package types import ( "bytes" - sc "github.com/LimeChain/goscale" "math/big" + + sc "github.com/LimeChain/goscale" ) var ( diff --git a/runtime/templates/poa/sudo_call_sudo_unchecked_weight_test.go b/runtime/templates/poa/sudo_call_sudo_unchecked_weight_test.go index bcb898d3..596b4af8 100644 --- a/runtime/templates/poa/sudo_call_sudo_unchecked_weight_test.go +++ b/runtime/templates/poa/sudo_call_sudo_unchecked_weight_test.go @@ -2,10 +2,11 @@ package main import ( "bytes" - "github.com/LimeChain/gosemble/primitives/types" "math/big" "testing" + "github.com/LimeChain/gosemble/primitives/types" + gossamertypes "github.com/ChainSafe/gossamer/dot/types" "github.com/ChainSafe/gossamer/lib/common" "github.com/ChainSafe/gossamer/pkg/scale"