Skip to content

Commit 5390eef

Browse files
committed
fix: support ES2020 session server builds
1 parent efb7230 commit 5390eef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tempo/session/precompile/Chain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ function parsePrecompileCredentialTransaction(parameters: {
423423
throw new VerificationFailedError({
424424
reason: `TIP-1034 ${label} transaction must contain one management call, optionally preceded by an auto-swap`,
425425
})
426-
const call = calls.at(-1)!
426+
const call = calls[calls.length - 1]!
427427
if (!call.to || !isAddressEqual(call.to, escrowContract))
428428
throw new VerificationFailedError({
429429
reason: `TIP-1034 ${label} transaction targets the wrong address`,

0 commit comments

Comments
 (0)