Skip to content

Commit

Permalink
Fix some unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmon committed Dec 9, 2024
1 parent e2da3a8 commit 46d1357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yarn-project/simulator/src/avm/avm_context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('Avm Context', () => {
expect(newContext.environment).toEqual(
allSameExcept(context.environment, {
address: newAddress,
fnName: 'top level function',
contractCallDepth: Fr.ONE,
calldata: newCalldata,
isStaticCall: false,
Expand Down Expand Up @@ -50,12 +51,13 @@ describe('Avm Context', () => {
newCalldata,
allocatedGas,
'STATICCALL',
'static func',
'static function',
);

expect(newContext.environment).toEqual(
allSameExcept(context.environment, {
address: newAddress,
fnName: 'static function',
contractCallDepth: Fr.ONE,
calldata: newCalldata,
isStaticCall: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('Execution Environment', () => {
expect(newExecutionEnvironment).toEqual(
allSameExcept(executionEnvironment, {
address: newAddress,
fnName: 'func',
contractCallDepth: Fr.ONE,
calldata: calldata,
}),
Expand All @@ -31,6 +32,7 @@ describe('Execution Environment', () => {
expect(newExecutionEnvironment).toEqual(
allSameExcept(executionEnvironment, {
address: newAddress,
fnName: 'static func',
contractCallDepth: Fr.ONE,
isStaticCall: true,
calldata: calldata,
Expand Down

0 comments on commit 46d1357

Please sign in to comment.