From 2898394091519fe38bee76a289133497332097c8 Mon Sep 17 00:00:00 2001 From: Joe Polny Date: Tue, 4 Jun 2024 09:20:58 -0400 Subject: [PATCH] utf8 is always void length --- src/lib/compiler.ts | 2 +- types/global.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/compiler.ts b/src/lib/compiler.ts index fb8b10190..a97a79a95 100644 --- a/src/lib/compiler.ts +++ b/src/lib/compiler.ts @@ -1091,7 +1091,7 @@ export default class Compiler { if (typeString === 'itxnparams') return { kind: 'base', type: 'itxn' }; if (typeString === 'bytes32') return { kind: 'staticArray', length: 32, base: { kind: 'base', type: 'byte' } }; if (typeString === 'bytes64') return { kind: 'staticArray', length: 64, base: { kind: 'base', type: 'byte' } }; - if (typeString === 'utf8void') return { kind: 'base', type: 'string' }; + if (typeString === 'utf8') return { kind: 'base', type: 'string' }; if (type.isBoolean()) return { kind: 'base', type: 'bool' }; diff --git a/types/global.d.ts b/types/global.d.ts index 7cd2c8bbc..f37537e54 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -262,7 +262,7 @@ declare type byte = { __byte: true }; declare type bytes = Byteslice; declare type bytes32 = Byteslice<32>; declare type bytes64 = Byteslice<64>; -declare type utf8 = bytes; +declare type utf8 = bytes; declare type TxnVerificationTests = { /** assert that the value is less than the given value */