From 1b1aa74770f1ed6a7ce795379e9516b78c0022a3 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Thu, 19 Sep 2024 23:23:41 -0400 Subject: [PATCH] Correct forge fmt config --- .github/workflows/lint.yml | 2 +- networks/ethereum/schnorr/contracts/Schnorr.sol | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 63a67649..b994a3cb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -80,7 +80,7 @@ jobs: cache: false - name: Run forge fmt - run: FOUNDRY_FMT_SORT_INPUTS=false FOUNDRY_FMT_LINE_LENGTH=100 FOUNDRY_FMT_TABLE_WIDTH=2 FOUNDRY_FMT_BRACKET_SPACING=true FOUNDRY_FMT_INT_TYPES=preserve forge fmt --check $(find . -iname "*.sol") + run: FOUNDRY_FMT_SORT_INPUTS=false FOUNDRY_FMT_LINE_LENGTH=100 FOUNDRY_FMT_TAB_WIDTH=2 FOUNDRY_FMT_BRACKET_SPACING=true FOUNDRY_FMT_INT_TYPES=preserve forge fmt --check $(find . -iname "*.sol") machete: runs-on: ubuntu-latest diff --git a/networks/ethereum/schnorr/contracts/Schnorr.sol b/networks/ethereum/schnorr/contracts/Schnorr.sol index 247e0fbe..7405051a 100644 --- a/networks/ethereum/schnorr/contracts/Schnorr.sol +++ b/networks/ethereum/schnorr/contracts/Schnorr.sol @@ -15,11 +15,7 @@ library Schnorr { // message := the message signed // c := Schnorr signature challenge // s := Schnorr signature solution - function verify(bytes32 px, bytes32 message, bytes32 c, bytes32 s) - internal - pure - returns (bool) - { + function verify(bytes32 px, bytes32 message, bytes32 c, bytes32 s) internal pure returns (bool) { // ecrecover = (m, v, r, s) -> key // We instead pass the following to obtain the nonce (not the key) // Then we hash it and verify it matches the challenge