Commit 65b66e8
committed
refactor: streamline memory allocation in wallet_build_and_sign_transaction
This commit simplifies the memory allocation process for the transaction bytes in the wallet_build_and_sign_transaction function by removing an unnecessary match statement. The updated code directly allocates and converts the boxed slice into a raw pointer, improving readability and maintainability.1 parent 0551e01 commit 65b66e8
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | | - | |
426 | | - | |
| 424 | + | |
| 425 | + | |
427 | 426 | | |
428 | 427 | | |
429 | 428 | | |
| |||
0 commit comments