From d0d00f4972cc9aa16947aa396961eba7863ac866 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 19 Jan 2021 17:03:48 +0100 Subject: [PATCH] Fix crash when testSolanaLockup is executed for the first time We forgot to initialize the big.Int. --- bridge/e2e/solana.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge/e2e/solana.go b/bridge/e2e/solana.go index e4d25faa8..ac1d6fe4e 100644 --- a/bridge/e2e/solana.go +++ b/bridge/e2e/solana.go @@ -79,6 +79,7 @@ func testSolanaLockup(t *testing.T, ctx context.Context, ec *ethclient.Client, c // Store balance of wrapped destination token beforeErc20, err := token.BalanceOf(nil, devnet.GanacheClientDefaultAccountAddress) if err != nil { + beforeErc20 = new(big.Int) t.Log(err) // account may not yet exist, defaults to 0 } t.Logf("ERC20 balance: %v", beforeErc20)