Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit b1bcd4b

Browse files
committed
fix: UUID type backward compatibility
1 parent 9b0a820 commit b1bcd4b

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

src/codec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,10 +1160,6 @@ function getType(value: Value): Type {
11601160
return {type: 'bool'};
11611161
}
11621162

1163-
if (uuid.validate(value)) {
1164-
return {type: 'unspecified'};
1165-
}
1166-
11671163
if (isString(value)) {
11681164
return {type: 'string'};
11691165
}

src/transaction.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,15 +1735,7 @@ export class Snapshot extends EventEmitter {
17351735
if (!isEmpty(typeMap)) {
17361736
Object.keys(typeMap).forEach(param => {
17371737
const type = typeMap[param];
1738-
const typeObject = codec.createTypeObject(type);
1739-
if (
1740-
(type.child &&
1741-
typeObject.code === 'ARRAY' &&
1742-
typeObject.arrayElementType?.code !== 'TYPE_CODE_UNSPECIFIED') ||
1743-
(!type.child && typeObject.code !== 'TYPE_CODE_UNSPECIFIED')
1744-
) {
1745-
paramTypes[param] = typeObject;
1746-
}
1738+
paramTypes[param] = codec.createTypeObject(type);
17471739
});
17481740
}
17491741

0 commit comments

Comments
 (0)