We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 052311a commit b6d80d1Copy full SHA for b6d80d1
1 file changed
orange-sdk/src/trusted_wallet/dummy.rs
@@ -364,8 +364,8 @@ impl TrustedWalletInterface for DummyTrustedWallet {
364
// bad assumptions properly. So we mangle the payment id a bit here to avoid collisions.
365
fn mangle_payment_id(id: [u8; 32]) -> [u8; 32] {
366
let mut mangled = id;
367
- for i in 0..32 {
368
- mangled[i] = mangled[i].wrapping_add(0x42);
+ for i in &mut mangled {
+ *i = i.wrapping_add(0x42);
369
}
370
mangled
371
0 commit comments