pack method

Uint8List pack()

Implementation

Uint8List pack() {
  final initCodeHash = keccak256(initCode);
  final callDataHash = keccak256(callData);
  final paymasterAndDataHash = keccak256(paymasterAndData);
  return SolCodec.encodeParameters(
    [
      SolAddress(),
      SolUint(256),
      SolFixedBytes(32),
      SolFixedBytes(32),
      SolUint(256),
      SolUint(256),
      SolUint(256),
      SolUint(256),
      SolUint(256),
      SolFixedBytes(32),
    ],
    [
      sender.bytes,
      nonce,
      initCodeHash,
      callDataHash,
      callGasLimit,
      verificationGasLimit,
      preVerificationGas,
      maxFeePerGas,
      maxPriorityFeePerGas,
      paymasterAndDataHash,
    ],
  );
}