This commit is contained in:
Paul 2022-10-02 13:38:45 -04:00 committed by GitHub
parent e122d6ccfe
commit c811ff646b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -557,7 +557,7 @@ feature. However, using public testnets as a backend does not lend itself well t
*automated unit testing*. Therefore, Geth also implements a *simulated blockchain* *automated unit testing*. Therefore, Geth also implements a *simulated blockchain*
that can be set as a backend to native contracts the same way as a live RPC backend, using the that can be set as a backend to native contracts the same way as a live RPC backend, using the
command `backends.NewSimulatedBackend(genesisAccounts)`. The code snippet below shows how this command `backends.NewSimulatedBackend(genesisAccounts)`. The code snippet below shows how this
can be used as a backend in a Go applicatioon. can be used as a backend in a Go application.
```go ```go
package main package main
@ -614,4 +614,4 @@ contract bindings automatically. This makes contract functions available in Go n
[hardhat-link]:https://hardhat.org/ [hardhat-link]:https://hardhat.org/
[brownie-link]:https://eth-brownie.readthedocs.io/en/stable/ [brownie-link]:https://eth-brownie.readthedocs.io/en/stable/
[remix-link]:https://remix.ethereum.org/ [remix-link]:https://remix.ethereum.org/
[web3-ss-link]:https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition [web3-ss-link]:https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition