Skip to content

Commit

Permalink
9396: fix avm simulator test (remove test related to function selector)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmon committed Dec 5, 2024
1 parent 9f90f45 commit 77c46ae
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions yarn-project/simulator/src/avm/avm_simulator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,18 +234,6 @@ describe('AVM simulator: transpiled Noir contracts', () => {
expect(results.output).toEqual([computeVarArgsHash(calldata)]);
});

it('functionSelector getter via dispatch', async () => {
const selector = FunctionSelector.fromSignature('get_function_selector()').toField();
const dispatchCalldata = [selector];

const context = initContext({ env: initExecutionEnvironment({ calldata: dispatchCalldata }) });
const bytecode = getAvmTestContractBytecode('public_dispatch');
const results = await new AvmSimulator(context).executeBytecode(bytecode);

expect(results.reverted).toBe(false);
expect(results.output).toEqual([selector]);
});

it('modulo and u1', async () => {
const calldata: Fr[] = [new Fr(2)];
const context = initContext({ env: initExecutionEnvironment({ calldata }) });
Expand Down

0 comments on commit 77c46ae

Please sign in to comment.