@@ -121,30 +121,11 @@ impl FindAuthor<H160> for FindAuthorTruncated {
121
121
pub struct RawAccountBasic < T > ( sp_std:: marker:: PhantomData < T > ) ;
122
122
impl < T : Config > AccountBasic < T > for RawAccountBasic < T > {
123
123
/// Get the account basic in EVM format.
124
- fn account_basic ( address : & H160 ) -> Account {
125
- let account_id = T :: AddressMapping :: into_account_id ( * address) ;
126
-
127
- let nonce = <frame_system:: Pallet < T > >:: account_nonce ( & account_id) ;
128
- let balance = T :: RingCurrency :: free_balance ( & account_id) ;
129
-
130
- Account {
131
- nonce : U256 :: from ( UniqueSaturatedInto :: < u128 > :: unique_saturated_into ( nonce) ) ,
132
- balance : U256 :: from ( UniqueSaturatedInto :: < u128 > :: unique_saturated_into ( balance) ) ,
133
- }
124
+ fn account_basic ( _address : & H160 ) -> Account {
125
+ Account :: default ( )
134
126
}
135
127
136
- fn mutate_account_basic_balance ( address : & H160 , new_balance : U256 ) {
137
- let account_id = T :: AddressMapping :: into_account_id ( * address) ;
138
- let current = T :: RingAccountBasic :: account_basic ( address) ;
139
-
140
- if current. balance > new_balance {
141
- let diff = current. balance - new_balance;
142
- T :: RingCurrency :: slash ( & account_id, diff. low_u128 ( ) . unique_saturated_into ( ) ) ;
143
- } else if current. balance < new_balance {
144
- let diff = new_balance - current. balance ;
145
- T :: RingCurrency :: deposit_creating ( & account_id, diff. low_u128 ( ) . unique_saturated_into ( ) ) ;
146
- }
147
- }
128
+ fn mutate_account_basic_balance ( _address : & H160 , _new_balance : U256 ) { }
148
129
149
130
fn transfer ( _source : & H160 , _target : & H160 , _value : U256 ) -> Result < ( ) , ExitError > {
150
131
Ok ( ( ) )
@@ -176,14 +157,9 @@ impl Config for Test {
176
157
type FeeCalculator = FixedGasPrice ;
177
158
type GasWeightMapping = ( ) ;
178
159
type CallOrigin = EnsureAddressRoot < Self :: AccountId > ;
179
-
180
160
type AddressMapping = ConcatAddressMapping < Self :: AccountId > ;
181
161
type BlockHashMapping = SubstrateBlockHashMapping < Self > ;
182
162
type FindAuthor = FindAuthorTruncated ;
183
-
184
- type RingCurrency = Ring ;
185
- type KtonCurrency = Kton ;
186
-
187
163
type Event = Event ;
188
164
type Precompiles = ( ) ;
189
165
type ChainId = ( ) ;
0 commit comments