Skip to content

Commit

Permalink
test: fixed private execution test
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jul 31, 2023
1 parent 5766adf commit bd63152
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions yarn-project/acir-simulator/src/client/private_execution.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ describe('Private Execution test suite', () => {
);
});

it.skip('should be able to insert, read, and nullify pending commitments in nested calls', async () => {
it('should be able to insert, read, and nullify pending commitments in nested calls', async () => {
oracle.getNotes.mockResolvedValue([]);

const amountToTransfer = 100n;
Expand All @@ -633,7 +633,13 @@ describe('Private Execution test suite', () => {

oracle.getPortalContractAddress.mockImplementation(() => Promise.resolve(EthAddress.ZERO));

const args = [amountToTransfer, owner, insertFnSelector, getThenNullifyFnSelector, getZeroFnSelector];
const args = [
amountToTransfer,
owner,
Fr.fromBuffer(insertFnSelector),
Fr.fromBuffer(getThenNullifyFnSelector),
Fr.fromBuffer(getZeroFnSelector),
];
const result = await runSimulator({
args: args,
abi: abi,
Expand Down

0 comments on commit bd63152

Please sign in to comment.