Skip to main content

validate_fee_calldata

Function validate_fee_calldata 

Source
pub fn validate_fee_calldata(
    calldata: &[u8],
    expected_recipient: &str,
    expected_amount: &str,
    expected_memo_hash: Option<&str>,
) -> Result<(), CmdError>
Expand description

Verify that the calldata in payload_to_sign encodes an ERC-20 transfer or TIP-20 transferWithMemo call with recipient, amount, and memo matching the server’s payment parameters.