Skip to content

Commit a6da935

Browse files
committed
Update cep-nft-transfer to specify CLTypeUInt8 for CLOption initialization, ensuring proper type handling
1 parent 1737d5f commit a6da935

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/casperSdk/cep-nft-transfer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
StoredVersionedContractByHash,
1717
Timestamp,
1818
Transaction,
19+
CLTypeUInt8,
1920
} from 'casper-js-sdk';
2021

2122
export enum NFTTokenStandard {
@@ -304,6 +305,6 @@ export function getRuntimeArgsForCep95Transfer({
304305
),
305306
),
306307
token_id: CLValue.newCLUInt256(tokenId),
307-
data: CLValue.newCLOption(null),
308+
data: CLValue.newCLOption(null, CLTypeUInt8),
308309
});
309310
}

0 commit comments

Comments
 (0)