message: Fix swap call parameters nul checks
diff: @@ -42,12 +42,11 @@ export function swapCallParameters(
  );
  const path = input.trade.route.path.map<string>((token) => token.address);
  - const deadline = input.tradeOptions.ttl
  + const deadline = !input.tradeOptions.ttl.isNull
  ? "0x" +
  - (
  - Math.floor((Date.now() / 1000) as f64) + input.tradeOptions.ttl.value
  - ).toString(16)
  - : "0x" + input.tradeOptions.deadline.value.toString(16);
  + ((Math.floor((Date.now() / 1000) as f64) +
  + input.tradeOptions.ttl.value) as u64).toString(16)
  + : "0x" + (input.tradeOptions.deadline.value as u32).toString(16);
  const useFeeOnTransfer = input.tradeOptions.feeOnTransfer;
  let methodName: string;
  @@ -61,7 +60,6 @@ export function swapCallParameters(
  ? "swapExactETHForTokensSupportingFeeOnTransferTokens"
  : "swapExactETHForTokens";
  // (uint amountOutMin, address[] calldata path, address to, uint deadline)
  - log(path);
  args = [amountOut, path.toString(), to, deadline];
  value = amountIn;
  } else if (etherOut) {
  @@ -81,7 +79,7 @@ export function swapCallParameters(
  }
  break;
  case TradeType.EXACT_OUTPUT:
  - if (useFeeOnTransfer) {
  + if (!useFeeOnTransfer.isNull) {
  throw new Error("Cannot use fee on transfer with exact out trade");
  }
  