Skip to content

Commit

Permalink
chore: /**/ naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 24, 2024
1 parent a53444f commit 2b38bdf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions yarn-project/acir-simulator/src/avm/avm_execution_environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class AvmExecutionEnvironment {

public newCall(address: AztecAddress, calldata: Fr[]): AvmExecutionEnvironment {
return new AvmExecutionEnvironment(
address,
address,
/*address=*/ address,
/*storageAddress=*/ address,
this.origin,
this.sender,
this.portal,
Expand All @@ -52,14 +52,14 @@ export class AvmExecutionEnvironment {
this.globals,
this.isStaticCall,
this.isDelegateCall,
calldata,
/*calldata=*/ calldata,
);
}

public newStaticCall(address: AztecAddress, calldata: Fr[]): AvmExecutionEnvironment {
return new AvmExecutionEnvironment(
address,
address,
/*address=*/ address,
/*storageAddress=*/ address,
this.origin,
this.sender,
this.portal,
Expand All @@ -68,15 +68,15 @@ export class AvmExecutionEnvironment {
this.feePerDaGas,
this.contractCallDepth,
this.globals,
true,
/*isStaticCall=*/ true,
this.isDelegateCall,
calldata,
/*calldata=*/ calldata,
);
}

public newDelegateCall(address: AztecAddress, calldata: Fr[]): AvmExecutionEnvironment {
return new AvmExecutionEnvironment(
address,
/*address=*/ address,
this.storageAddress,
this.origin,
this.sender,
Expand All @@ -87,8 +87,8 @@ export class AvmExecutionEnvironment {
this.contractCallDepth,
this.globals,
this.isStaticCall,
true,
calldata,
/*isDelegateCall=*/ true,
/*calldata=*/ calldata,
);
}
}

0 comments on commit 2b38bdf

Please sign in to comment.