Skip to content

Commit 09d0e56

Browse files
Format Rust code using rustfmt
1 parent 04ad71f commit 09d0e56

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/hypermap.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,7 @@ impl Hypermap {
653653
let perms_note_hash_str = format!("0x{}", hex::encode(perms_note_hash));
654654

655655
// 4. Get the permissions note using the hash
656-
let (_perms_tba, _perms_owner, perms_data_opt) =
657-
self.get_hash(&perms_note_hash_str)?;
656+
let (_perms_tba, _perms_owner, perms_data_opt) = self.get_hash(&perms_note_hash_str)?;
658657

659658
let perms_data = perms_data_opt.ok_or_else(|| {
660659
// Permissions note not found or has no data - malformed/unexpected response

src/wallet.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -2164,11 +2164,11 @@ pub fn get_token_details(
21642164
///
21652165
/// # Returns
21662166
/// A `Vec<u8>` containing the ABI-encoded calldata.
2167-
pub fn create_erc20_transfer_calldata(
2168-
recipient: EthAddress,
2169-
amount: U256,
2170-
) -> Vec<u8> {
2171-
let call = IERC20::transferCall { to: recipient, value: amount };
2167+
pub fn create_erc20_transfer_calldata(recipient: EthAddress, amount: U256) -> Vec<u8> {
2168+
let call = IERC20::transferCall {
2169+
to: recipient,
2170+
value: amount,
2171+
};
21722172
call.abi_encode()
21732173
}
21742174

0 commit comments

Comments
 (0)