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 = {
10
10
* @dev Decodes token information from encoded extra data.
11
11
* @param extraData The extraData
12
12
* @returns GatedTokenInfo object with tokenGate address, isERC1155 flag, and tokenId.
13
+ * `undefined` if it's not a gated disputeKit
13
14
*/
14
- export function extraDataToTokenInfo ( extraDataHex : `0x${string } `) : GatedTokenInfo {
15
+ export function extraDataToTokenInfo ( extraDataHex : `0x${string } `) : GatedTokenInfo | undefined {
15
16
const extraDataBytes = hexToBytes ( extraDataHex ) ;
16
17
17
18
if ( extraDataBytes . length < 160 ) {
18
- return {
19
- tokenGate : "0x0000000000000000000000000000000000000000" ,
20
- isERC1155 : false ,
21
- tokenId : "0" ,
22
- } ;
19
+ return ;
23
20
}
24
21
25
22
// Slot 4 (bytes 96–127): packedTokenGateAndFlag
You can’t perform that action at this time.
0 commit comments