Documentation ¶
Overview ¶
Package openseatest provides a test double for wETH.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployWETH ¶
func DeployWETH(sim *ethtest.SimulatedBackend) (*wethtestabi.IwETH, error)
DeployWETH deploys a mocked wETH contract to the SimulatedBackend and returns an interface wrapping the address.
This function MUST only be called once for each SimulatedBackend; all future calls will deploy to a different address to the one expected by the WETH library.
func DeployWETHTB ¶
func DeployWETHTB(tb testing.TB, sim *ethtest.SimulatedBackend) *wethtestabi.IwETH
DeployWETHTB calls DeployWETH() and reports any errors with tb.Fatal.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package wethtestabi is a generated package providing test doubles of the wETH contract.
|
Package wethtestabi is a generated package providing test doubles of the wETH contract. |
Click to show internal directories.
Click to hide internal directories.