Skip to content

Commit

Permalink
Fix yet another test
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Oct 23, 2023
1 parent d9f8aff commit db1723f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/soroban-rpc/internal/test/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ func TestSendTransactionFailedInLedger(t *testing.T) {
address := kp.Address()
account := txnbuild.NewSimpleAccount(address, 0)

op := createInstallContractCodeOperation(account.AccountID, getHelloWorldContract(t))
// without the presources the tx will fail
op.Ext = xdr.TransactionExt{
V: 1,
SorobanData: &xdr.SorobanTransactionData{},
}
tx, err := txnbuild.NewTransaction(txnbuild.TransactionParams{
SourceAccount: &account,
IncrementSequenceNum: true,
Operations: []txnbuild.Operation{
op,
&txnbuild.Payment{
// Destination doesn't exist, making the transaction fail
Destination: "GA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLTJJFC7MGXUA74P7UJVSGZ",
Amount: "100000.0000000",
Asset: txnbuild.NativeAsset{},
SourceAccount: "",
},
},
BaseFee: txnbuild.MinBaseFee * 1000,
BaseFee: txnbuild.MinBaseFee,
Preconditions: txnbuild.Preconditions{
TimeBounds: txnbuild.NewInfiniteTimeout(),
},
Expand Down

0 comments on commit db1723f

Please sign in to comment.