Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Jan 15, 2024
1 parent d0c68e6 commit c7f0374
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions yarn-project/accounts/scripts/copy-contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ contracts=(schnorr_account_contract-SchnorrAccount ecdsa_account_contract-EcdsaA
for contract in "${contracts[@]}"; do
cp "../noir-contracts/target/$contract.json" ./src/artifacts/${contract#*-}.json
done

yarn formatting:fix
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ describe('Private Execution test suite', () => {

it('should have a constructor with arguments that inserts notes', async () => {
const artifact = getFunctionArtifact(StatefulTestContractArtifact, 'constructor');
console.log('ARTIFACT BYTECODE', artifact.bytecode);

const result = await runSimulator({ args: [owner, 140], artifact });

expect(result.newNotes).toHaveLength(1);
Expand Down
3 changes: 0 additions & 3 deletions yarn-project/noir-compiler/src/cli/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,12 @@ function generateFromNoirAbi(outputPath: string, noirAbiPath: string, opts: Gene
}

if (ts) {
console.log('OUT', outputPath);
let relativeArtifactPath = path.relative(outputPath, noirAbiPath);
if (relativeArtifactPath === path.basename(noirAbiPath)) {
// Prepend ./ for local import if the folder is the same
relativeArtifactPath = `./${relativeArtifactPath}`;
}

console.log(`PATHS`, path.dirname(outputPath), noirAbiPath, relativeArtifactPath);

const tsWrapper = generateTypescriptContractInterface(aztecAbi, relativeArtifactPath);
writeFileSync(`${outputPath}/${aztecAbi.name}.ts`, tsWrapper);
}
Expand Down

0 comments on commit c7f0374

Please sign in to comment.