Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

docs: add erc20 token transfer example #2295

Merged
merged 1 commit into from
Apr 1, 2023
Merged

docs: add erc20 token transfer example #2295

merged 1 commit into from
Apr 1, 2023

Conversation

agostbiro
Copy link
Contributor

Motivation

Support request on Telegram for ERC20 token transfer example.

Solution

Added a new example to the transaction examples that shows how to transfer an ERC20 token.

Since the local Anvil node doesn't have any ERC20 tokens deployed when it starts, the example first compiles and deploys a token contract on the local Anvil node. This necessitated committing an ERC20 token contract from OpenZeppelin to the repo.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great, ty

@prestwich
Copy link
Collaborator

CI failures are unrelated

@prestwich prestwich merged commit 2de85a6 into gakonst:master Apr 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants