From 3f304fb21db452a95a807ef031074b922e5204c1 Mon Sep 17 00:00:00 2001 From: Francisco de Borja Aranda Castillejo Date: Wed, 7 Aug 2024 15:01:50 +0200 Subject: [PATCH] ci: include typos config --- .github/workflows/check.yml | 2 ++ .typos.toml | 13 +++++++++++++ README.md | 2 +- scripts/fmt.sh | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .typos.toml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b291ac8..3a6a472 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -111,3 +111,5 @@ jobs: uses: actions/checkout@v4 - name: Check spelling of files in the workspace uses: crate-ci/typos@v1.23.6 + with: + config: .typos.toml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..5e25bce --- /dev/null +++ b/.typos.toml @@ -0,0 +1,13 @@ +[files] +ignore-files = true +ignore-hidden = false +extend-exclude = [ + ".git/", +] + +[default] +extend-ignore-re = [ + # hardcoded ID in src/lib.rs:29 + '94U5AHQMKkV5txNJ17QPXWoh474PheGou6cNP2FEuL1d', +] +check-filename = true \ No newline at end of file diff --git a/README.md b/README.md index 32161d4..cc46223 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ https://github.com/zeta-chain/protocol-contracts-solana/blob/01eeb9733a00b6e972d The TSS signature is a ECDSA secp256k1 signature; its public key therefore address (Ethereum compatible hashing from pubkey) is therefore verifiable using the `secp256k1_recover` -function. Alternatively, Solana runtime also privides a program to provide this verification service +function. Alternatively, Solana runtime also provides a program to provide this verification service via CPI; see [proposal 48](https://github.com/solana-foundation/solana-improvement-documents/blob/main/proposals/0048-native-program-for-secp256r1-sigverify.md) which might be more cost efficient. diff --git a/scripts/fmt.sh b/scripts/fmt.sh index c9a1dc3..64b6959 100755 --- a/scripts/fmt.sh +++ b/scripts/fmt.sh @@ -19,5 +19,5 @@ cargo fmt if [[ $? == 0 ]] ; then echo "Code is formatted!" else - echo "An error ocurred during formatting" + echo "An error occurred during formatting" fi