Skip to content

Commit 7d14f6f

Browse files
authored
Merge pull request #130 from tonlabs/fix-max
fix std::MAX
2 parents fd9462b + 3160402 commit 7d14f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ton_sdk/src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl Transaction {
234234
fees.in_msg_fwd_fee = if in_msg_fwd_fee > 0 { in_msg_fwd_fee as u64 } else { 0 };
235235

236236
let total_output = self.out_messages.iter().fold(0u128, |acc, msg| acc + msg.value as u128);
237-
fees.total_output = if total_output <= u64::MAX as u128 { total_output as u64 } else { 0 };
237+
fees.total_output = if total_output <= std::u64::MAX as u128 { total_output as u64 } else { 0 };
238238

239239
fees
240240
}

0 commit comments

Comments
 (0)