diff --git a/src/lib/circuit_value.ts b/src/lib/circuit_value.ts index d0a85e5cc9..679b78efda 100644 --- a/src/lib/circuit_value.ts +++ b/src/lib/circuit_value.ts @@ -384,6 +384,7 @@ function Struct< }; toJSON: (x: T) => J; fromJSON: (x: J) => T; + empty: () => T; } { class Struct_ { static type = provable(type); diff --git a/src/lib/hash.ts b/src/lib/hash.ts index c6d66d3f9d..2b1064f7a7 100644 --- a/src/lib/hash.ts +++ b/src/lib/hash.ts @@ -184,10 +184,6 @@ const TokenSymbolPure: ProvableExtended< }, }; class TokenSymbol extends Struct(TokenSymbolPure) { - static get empty() { - return { symbol: '', field: Field(0) }; - } - static from(symbol: string): TokenSymbol { let bytesLength = new TextEncoder().encode(symbol).length; if (bytesLength > 6)