From bf383e7d7921f026aa0735eb82b2903862995c0f Mon Sep 17 00:00:00 2001 From: Devon Bear Date: Sun, 22 Oct 2023 17:00:45 -0400 Subject: [PATCH] try this? --- cosmos/x/evm/plugins/state/plugin.go | 5 ++++- e2e/testapp/docker/docker-compose.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cosmos/x/evm/plugins/state/plugin.go b/cosmos/x/evm/plugins/state/plugin.go index 5e7ca09a2..d82921440 100644 --- a/cosmos/x/evm/plugins/state/plugin.go +++ b/cosmos/x/evm/plugins/state/plugin.go @@ -206,7 +206,10 @@ func (p *plugin) Finalize() { // CreateAccount implements the `StatePlugin` interface by creating a new account // in the account keeper. It will allow accounts to be overridden. func (p *plugin) CreateAccount(addr common.Address) { - acc := p.ak.NewAccountWithAddress(p.ctx, addr[:]) + acc := p.ak.GetAccount(p.ctx, addr[:]) + if acc == nil { + acc = p.ak.NewAccountWithAddress(p.ctx, addr[:]) + } // save the new account in the account keeper p.ak.SetAccount(p.ctx, acc) diff --git a/e2e/testapp/docker/docker-compose.yml b/e2e/testapp/docker/docker-compose.yml index 20c8d4be1..7441b20e4 100644 --- a/e2e/testapp/docker/docker-compose.yml +++ b/e2e/testapp/docker/docker-compose.yml @@ -94,6 +94,7 @@ services: ipv4_address: 192.168.10.13 nginx: + depends_on: [ node0, node1, node2, node3 ] container_name: nginx image: nginx:latest ports: