Skip to content

Commit

Permalink
optimise addr passing for key creation in create_balances_query_keys
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Mozhaev <programmer10110@gmail.com>
  • Loading branch information
sotnikov-s and pr0n00gler authored Jun 5, 2024
1 parent e2a6a31 commit f847230
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn create_balances_query_keys(addr: String, denoms: Vec<String>) -> NeutronR
let mut kv_keys: Vec<KVKey> = Vec::with_capacity(denoms.len());

for denom in denoms {
let balance_key = create_account_denom_balance_key(converted_addr_bytes.clone(), denom)?;
let balance_key = create_account_denom_balance_key(&converted_addr_bytes, denom)?;

let kv_key = KVKey {
path: BANK_STORE_KEY.to_string(),
Expand Down

0 comments on commit f847230

Please # to comment.