From bf844902eea45a7a2634f1295b723e54009eae6a Mon Sep 17 00:00:00 2001 From: fcarreiro Date: Wed, 8 May 2024 15:49:33 +0000 Subject: [PATCH] change name --- yarn-project/simulator/src/avm/opcodes/external_calls.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn-project/simulator/src/avm/opcodes/external_calls.ts b/yarn-project/simulator/src/avm/opcodes/external_calls.ts index aec6d12769b..1cf06ce5fcb 100644 --- a/yarn-project/simulator/src/avm/opcodes/external_calls.ts +++ b/yarn-project/simulator/src/avm/opcodes/external_calls.ts @@ -102,14 +102,14 @@ abstract class ExternalCall extends Instruction { // TRANSITIONAL: We rethrow here so that the MESSAGE gets propagated. if (!success) { - class RethrowedError extends AvmExecutionError { + class RethrownError extends AvmExecutionError { constructor(message: string) { super(message); - this.name = 'RethrowedError'; + this.name = 'RethrownError'; } } - throw new RethrowedError(nestedCallResults.revertReason?.message || 'Unknown nested call error'); + throw new RethrownError(nestedCallResults.revertReason?.message || 'Unknown nested call error'); } // We only take as much data as was specified in the return size and pad with zeroes if the return data is smaller