Skip to content

Commit

Permalink
fix another panic
Browse files Browse the repository at this point in the history
  • Loading branch information
tsachiherman committed Sep 13, 2023
1 parent 0a54262 commit 38dc8aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions services/horizon/internal/integration/sac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,10 @@ func TestContractBurnFromAccount(t *testing.T) {
)

fx := getTxEffects(itest, burnTx, asset)
assert.Len(t, fx, 1)
burnEffect := assertContainsEffect(t, fx,
effects.EffectAccountDebited)[0].(effects.AccountDebited)
require.Len(t, fx, 1)
assetEffects := assertContainsEffect(t, fx, effects.EffectAccountDebited)
require.GreaterOrEqual(t, len(assetEffects), 1)
burnEffect := assetEffects[0].(effects.AccountDebited)

assert.Equal(t, issuer, burnEffect.Asset.Issuer)
assert.Equal(t, code, burnEffect.Asset.Code)
Expand Down

0 comments on commit 38dc8aa

Please sign in to comment.