From 3c61c61357effca9261fb5c0eec9a66aa9cdba04 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 8 Oct 2024 11:55:32 -0400 Subject: [PATCH] Appease linter --- .../internal/integrationtest/infrastructure/contract.go | 4 +++- cmd/soroban-rpc/internal/integrationtest/transaction_test.go | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/soroban-rpc/internal/integrationtest/infrastructure/contract.go b/cmd/soroban-rpc/internal/integrationtest/infrastructure/contract.go index 46e6fda1..e4c087fc 100644 --- a/cmd/soroban-rpc/internal/integrationtest/infrastructure/contract.go +++ b/cmd/soroban-rpc/internal/integrationtest/infrastructure/contract.go @@ -133,7 +133,9 @@ func CreateCreateNoArgConstructorContractOperation(sourceAccount string) *txnbui return createCreateContractV2Operation(sourceAccount, salt, contractHash) } -func createCreateContractV2Operation(sourceAccount string, salt xdr.Uint256, contractHash xdr.Hash) *txnbuild.InvokeHostFunction { +func createCreateContractV2Operation( + sourceAccount string, salt xdr.Uint256, contractHash xdr.Hash, +) *txnbuild.InvokeHostFunction { sourceAccountID := xdr.MustAddress(sourceAccount) return &txnbuild.InvokeHostFunction{ HostFunction: xdr.HostFunction{ diff --git a/cmd/soroban-rpc/internal/integrationtest/transaction_test.go b/cmd/soroban-rpc/internal/integrationtest/transaction_test.go index ff6515ff..1dfd1f4e 100644 --- a/cmd/soroban-rpc/internal/integrationtest/transaction_test.go +++ b/cmd/soroban-rpc/internal/integrationtest/transaction_test.go @@ -204,7 +204,6 @@ func TestSendTransactionFailedInvalidXDR(t *testing.T) { } func TestContractCreationWithConstructor(t *testing.T) { - if infrastructure.GetCoreMaxSupportedProtocol() < 22 { t.Skip("Only test this for protocol >= 22") } @@ -224,5 +223,4 @@ func TestContractCreationWithConstructor(t *testing.T) { tx, err := txnbuild.NewTransaction(params) require.NoError(t, err) infrastructure.SendSuccessfulTransaction(t, client, test.MasterKey(), tx) - }