Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarreiro committed May 8, 2024
1 parent 12a9436 commit bf84490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarn-project/simulator/src/avm/opcodes/external_calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf84490

Please sign in to comment.