Skip to content

Commit

Permalink
chore: add auto check typos flow when RP (#957)
Browse files Browse the repository at this point in the history
* chore: add auto check typos flow when RP

* chore: fix action config

* chore: fix action config

* Update .github/workflows/typos.yaml

Co-authored-by: Eric Nordelo <eric.nordelo39@gmail.com>

* fix: utilities typos

---------

Co-authored-by: Eric Nordelo <eric.nordelo39@gmail.com>
  • Loading branch information
momodaka and ericnordelo authored Apr 2, 2024
1 parent 733a1ef commit 17e6bcc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/typos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Check for typos

on: [pull_request]

jobs:
check-for-typos:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Check for typos
uses: crate-ci/typos@bcafd462cb07ef7ba57e34abf458fe20767e808b
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/guides/snip12.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -346,4 +346,4 @@ mod CustomERC20 {
self.erc20._transfer(owner, recipient, amount);
}
}
----
----

0 comments on commit 17e6bcc

Please sign in to comment.