From a83c397fb64d980edf4df9de0059634a6fbd37df Mon Sep 17 00:00:00 2001 From: momodaka <463435681@qq.com> Date: Fri, 29 Mar 2024 16:18:31 +0800 Subject: [PATCH 1/5] chore: add auto check typos flow when RP --- .github/workflows/typos.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/typos.yaml diff --git a/.github/workflows/typos.yaml b/.github/workflows/typos.yaml new file mode 100644 index 000000000..2155dc134 --- /dev/null +++ b/.github/workflows/typos.yaml @@ -0,0 +1,13 @@ +name: Check for typos + +on: [pull_request] + +jobs: + check-for-typos: + runs-on: [taiko-runner] + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Check for typos + uses: crate-ci/typos@master From 56f5af57b46181a2ca08db3c1c57e5a00250bbb6 Mon Sep 17 00:00:00 2001 From: momodaka <463435681@qq.com> Date: Fri, 29 Mar 2024 16:35:04 +0800 Subject: [PATCH 2/5] chore: fix action config --- .github/workflows/typos.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/typos.yaml b/.github/workflows/typos.yaml index 2155dc134..2f557fa6f 100644 --- a/.github/workflows/typos.yaml +++ b/.github/workflows/typos.yaml @@ -4,7 +4,6 @@ on: [pull_request] jobs: check-for-typos: - runs-on: [taiko-runner] steps: - name: Checkout the repository uses: actions/checkout@v4 From 6a2d9fd4f6b2976de7fadab77bfb0324adb85cc5 Mon Sep 17 00:00:00 2001 From: momodaka <463435681@qq.com> Date: Fri, 29 Mar 2024 16:36:51 +0800 Subject: [PATCH 3/5] chore: fix action config --- .github/workflows/typos.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/typos.yaml b/.github/workflows/typos.yaml index 2f557fa6f..8a9af52dc 100644 --- a/.github/workflows/typos.yaml +++ b/.github/workflows/typos.yaml @@ -4,6 +4,7 @@ on: [pull_request] jobs: check-for-typos: + runs-on: ubuntu-latest steps: - name: Checkout the repository uses: actions/checkout@v4 From 750a9dcff7e2508f112eb003847f9f9afce447bd Mon Sep 17 00:00:00 2001 From: momodaka <463435681@qq.com> Date: Fri, 29 Mar 2024 23:44:44 +0800 Subject: [PATCH 4/5] Update .github/workflows/typos.yaml Co-authored-by: Eric Nordelo --- .github/workflows/typos.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/typos.yaml b/.github/workflows/typos.yaml index 8a9af52dc..c2a373462 100644 --- a/.github/workflows/typos.yaml +++ b/.github/workflows/typos.yaml @@ -10,4 +10,4 @@ jobs: uses: actions/checkout@v4 - name: Check for typos - uses: crate-ci/typos@master + uses: crate-ci/typos@bcafd462cb07ef7ba57e34abf458fe20767e808b From 8b7c5ddc6e34249bcbce3abbb891c6a8b30cde42 Mon Sep 17 00:00:00 2001 From: momodaka <463435681@qq.com> Date: Tue, 2 Apr 2024 22:50:23 +0800 Subject: [PATCH 5/5] fix: utilities typos --- docs/modules/ROOT/pages/guides/snip12.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/guides/snip12.adoc b/docs/modules/ROOT/pages/guides/snip12.adoc index b99274a43..0b120b023 100644 --- a/docs/modules/ROOT/pages/guides/snip12.adoc +++ b/docs/modules/ROOT/pages/guides/snip12.adoc @@ -12,7 +12,7 @@ is then to ensure that the received message was indeed signed by the expected si OpenZeppelin Contracts for Cairo provides a set of utilities to make the implementation of this standard as easy as possible, and in this guide we will walk you through the process of generating the hashes of typed messages -using these utilties for on-chain signature verification. For that, let's build an example with a custom {erc20} contract +using these utilities for on-chain signature verification. For that, let's build an example with a custom {erc20} contract adding an extra `transfer_with_signature` method. WARNING: This is an educational example, and it is not intended to be used in production environments. @@ -346,4 +346,4 @@ mod CustomERC20 { self.erc20._transfer(owner, recipient, amount); } } ----- \ No newline at end of file +----