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