Add new txs to get_fee_info method
@@ -778,6 +778,24 @@ impl FranklinTx {
transfer.to,
transfer.fee.clone(),
)),
+ FranklinTx::ForcedExit(forced_exit) => Some((
+ TxFeeTypes::Withdraw,
+ TokenLike::Id(forced_exit.token),
+ forced_exit.target,
+ forced_exit.fee.clone(),
+ )),
+ FranklinTx::ChangePubKey(change_pubkey) => {
+ // If there is no Ethereum signature in the transaction, it is assumed that auth is performed on-chain.
+ let onchain_pubkey_auth = change_pubkey.eth_signature.is_none();
+ Some((
+ TxFeeTypes::ChangePubKey {
+ onchain_pubkey_auth,
+ },
+ TokenLike::Id(change_pubkey.fee_token),
+ change_pubkey.account,
+ change_pubkey.fee.clone(),
+ ))
+ }
_ => None,
}
}
