Skip to content

Commit

Permalink
One more test
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed May 6, 2023
1 parent b327209 commit 90e45cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ledger/applications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1331,8 +1331,8 @@ return
a.Greater(len(ops.Program), 1)
program := ops.Program

proto := config.Consensus[protocol.ConsensusCurrentVersion]
genesisInitState, initKeys := ledgertesting.GenerateInitState(t, protocol.ConsensusCurrentVersion, 1000000)
proto := config.Consensus[protocol.ConsensusFuture]
genesisInitState, initKeys := ledgertesting.GenerateInitState(t, protocol.ConsensusFuture, 1000000)

creator, err := basics.UnmarshalChecksumAddress("3LN5DBFC2UTPD265LQDP3LMTLGZCQ5M3JV7XTVTGRH5CKSVNQVDFPN6FG4")
a.NoError(err)
Expand All @@ -1357,7 +1357,7 @@ return
GenesisHash: genesisInitState.GenesisHash,
}

appIdx := basics.AppIndex(2) // second tnx => idx = 2
appIdx := basics.AppIndex(1002) // second tnx => idx = 1002

// fund app account
fundingPayment := transactions.Transaction{
Expand Down Expand Up @@ -1386,7 +1386,7 @@ return
Header: txHeader,
ApplicationCallTxnFields: appCreateFields,
}
err = l1.appendUnvalidatedTx(t, genesisInitState.Accounts, initKeys, appCreate, transactions.ApplyData{ApplicationID: 2})
err = l1.appendUnvalidatedTx(t, genesisInitState.Accounts, initKeys, appCreate, transactions.ApplyData{ApplicationID: appIdx})
a.NoError(err)

// few empty blocks to reset deltas and flush
Expand Down

0 comments on commit 90e45cb

Please sign in to comment.