|
|
@ -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 |
|
|
|