File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,13 @@ type GatedTokenInfo = {
1010 * @dev Decodes token information from encoded extra data.
1111 * @param extraData The extraData
1212 * @returns GatedTokenInfo object with tokenGate address, isERC1155 flag, and tokenId.
13+ * `undefined` if it's not a gated disputeKit
1314 */
14- export function extraDataToTokenInfo ( extraDataHex : `0x${string } `) : GatedTokenInfo {
15+ export function extraDataToTokenInfo ( extraDataHex : `0x${string } `) : GatedTokenInfo | undefined {
1516 const extraDataBytes = hexToBytes ( extraDataHex ) ;
1617
1718 if ( extraDataBytes . length < 160 ) {
18- return {
19- tokenGate : "0x0000000000000000000000000000000000000000" ,
20- isERC1155 : false ,
21- tokenId : "0" ,
22- } ;
19+ return ;
2320 }
2421
2522 // Slot 4 (bytes 96–127): packedTokenGateAndFlag
You can’t perform that action at this time.
0 commit comments