# Does entry function supports generic type in parameter?

**URL:** <https://forums.sui.io/t/does-entry-function-supports-generic-type-in-parameter/44933>\
**Category:** Move\
**Tags:** sui\
**Created:** [August 10, 2023, 9:30pm UTC](https://forums.sui.io/t/does-entry-function-supports-generic-type-in-parameter/44933 "2023-08-10T21:30:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiqicao](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/shiqicao/32/30473_2.png) [@shiqicao](https://forums.sui.io/u/shiqicao)\
**Post date:** [August 10, 2023, 9:30pm UTC](https://forums.sui.io/t/does-entry-function-supports-generic-type-in-parameter/44933/1 "2023-08-10T21:30:58Z")

</div>

```auto
public entry fun test<T: drop + store>(
        t: T,
        ctx: &mut TxContext,
    ) {}

```

```auto
sui client call \
    --module test \
    --package $PKD_ID \
    --function test \
    --type-args "u8" \
    --args 1 \
    --gas-budget 100000000 \

```

errors

```auto
Could not serialize argument of type TypeParameter(0) at 0

```

---

<div class="post-metadata">

**Author:** ![manosliolios](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@manosliolios](https://forums.sui.io/u/manosliolios)\
**Post date:** [August 15, 2023, 6:01pm UTC](https://forums.sui.io/t/does-entry-function-supports-generic-type-in-parameter/44933/2 "2023-08-15T18:01:55Z")

</div>

@shiqicao entry functions do accept generic type parameters.

I am sensing the issue is probably passing it by using the CLI, because I tried the same function using TS SDK and it worked fine as a workaround.

```auto
const tx = new TransactionBlock();

tx.moveCall({
    target: '{pkg_id}::test::test',
    typeArguments: ['u8'],
    arguments: [
        tx.pure('1', 'u8')
]
... proceed with signing & executing the transaction

```
