Skip to content

Commit 0275ad1

Browse files
GarmashAlexdamip
andauthored
fix(client): check sender balance for CallSC pre-flight (#4946)
* fix(client): check sender balance for CallSC pre-flight * fmt --------- Co-authored-by: Damir Vodenicarevic <[email protected]>
1 parent a71be7a commit 0275ad1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

massa-client/src/cmds.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ impl Command {
10101010
match coins.checked_add(fee) {
10111011
Some(total) => {
10121012
if let Ok(addresses_info) =
1013-
client.public.get_addresses(vec![target_addr]).await
1013+
client.public.get_addresses(vec![addr]).await
10141014
{
10151015
match addresses_info.first() {
10161016
Some(info) => {
@@ -1019,10 +1019,7 @@ impl Command {
10191019
}
10201020
}
10211021
None => {
1022-
client_warning!(format!(
1023-
"address {} not found",
1024-
target_addr
1025-
));
1022+
client_warning!(format!("address {} not found", addr));
10261023
}
10271024
}
10281025
}

0 commit comments

Comments
 (0)