mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
646e376698
* update docker image to go 1.19 * update kvtool * add .tool-versions for automagic go version usage * update prtotonet genesis with missing params * update kvtool (fixes evm port exposure) * fix changed error message for insufficient fee * add error message on failed contract deployment * update kvtool (set consensus_params.block.max_gas) * temporarily disable ibc e2e tests * update kvtool to master
19 lines
606 B
Go
19 lines
606 B
Go
package testutil
|
|
|
|
import "github.com/kava-labs/kava/tests/e2e/contracts/greeter"
|
|
|
|
// InitKavaEvmData is run after the chain is running, but before the tests are run.
|
|
// It is used to initialize some EVM state, such as deploying contracts.
|
|
func (suite *E2eTestSuite) InitKavaEvmData() {
|
|
whale := suite.Kava.GetAccount(FundedAccountName)
|
|
|
|
// deploy an example contract
|
|
greeterAddr, _, _, err := greeter.DeployGreeter(
|
|
whale.evmSigner.Auth,
|
|
whale.evmSigner.EvmClient,
|
|
"what's up!",
|
|
)
|
|
suite.NoError(err, "failed to deploy a contract to the EVM")
|
|
suite.Kava.ContractAddrs["greeter"] = greeterAddr
|
|
}
|