Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ExampleInstrumentedTest {
result
.onSuccess {
println("✅ Sent: $it")
assert(it.signature.isNotEmpty())
assert(it.Signature.isNotEmpty())
}
.onFailure {
println("❌ Failed: ${it.message}")
Expand All @@ -74,7 +74,7 @@ class ExampleInstrumentedTest {
closeresult
.onSuccess {
println("✅ Sent: $it")
assert(it.signature.isNotEmpty())
assert(it.Signature.isNotEmpty())
}
.onFailure {
println("❌ Failed: ${it.message}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package com.altude.gasstation
import android.content.Context
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.altude.core.Programs.AssociatedTokenAccountProgram
import com.altude.core.Programs.MPLCore
import com.altude.gasstation.data.CloseAccountOption
import com.altude.gasstation.data.CreateAccountOption
import com.altude.gasstation.data.GetAccountInfoOption
Expand All @@ -14,10 +12,8 @@ import com.altude.gasstation.data.SendOptions
import com.altude.core.helper.Mnemonic
import com.altude.gasstation.data.KeyPair
import com.altude.gasstation.data.Token
import com.altude.core.network.QuickNodeRpc
import com.altude.core.service.StorageService
import com.altude.gasstation.data.Commitment
import foundation.metaplex.solanapublickeys.PublicKey
import kotlinx.coroutines.runBlocking
import org.junit.Before

Expand All @@ -43,7 +39,7 @@ class ExampleInstrumentedTest {
@Before
fun setup()=runBlocking{
context = InstrumentationRegistry.getInstrumentation().targetContext//ApplicationProvider.getApplicationContext()
Altude.setApiKey(context,"ak_acGsSti_GD9jaIisAf1a2_PhtOD5cJ3qq1u-PGYZo7k")
Altude.setApiKey(context,"ak_7KRePt6yFlsv_DYkuNGznpzpKFJTecsagXZwwSB0U2o")
}

// @Test
Expand Down Expand Up @@ -115,7 +111,7 @@ class ExampleInstrumentedTest {
result
.onSuccess {
println("✅ Sent: $it")
assert(it.signature.isNotEmpty())
assert(it.Signature.isNotEmpty())
}
.onFailure {
println("❌ Failed: ${it.message}")
Expand All @@ -136,7 +132,7 @@ class ExampleInstrumentedTest {
closeresult
.onSuccess {
println("✅ Sent: $it")
assert(it.signature.isNotEmpty())
assert(it.Signature.isNotEmpty())
}
.onFailure {
println("❌ Failed: ${it.message}")
Expand Down Expand Up @@ -221,7 +217,7 @@ class ExampleInstrumentedTest {
val result = Altude.send(options)

result
.onSuccess { println("✅ Sent: ${it.signature}") }
.onSuccess { println("✅ Sent: ${it.Signature}") }
.onFailure {
println("❌ Failed: ${it.message}")
}
Expand Down Expand Up @@ -259,7 +255,7 @@ class ExampleInstrumentedTest {
val result = Altude.sendBatch(options)

result
.onSuccess { println("✅ Sent: ${it.signature}") }
.onSuccess { println("✅ Sent: ${it.Signature}") }
.onFailure {
println("❌ Failed: ${it.message}")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import kotlinx.serialization.Serializable

@Serializable
data class TransactionResponse(
override val status: String,
override val message: String,
override val signature: String
override val Status: String,
override val Message: String,
override val Signature: String
) : ITransactionResponse
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package com.altude.gasstation.interfaces

interface ITransactionResponse{
//@SerializedName("Status")
val status: String // Match C# string type
val Status: String // Match C# string type

//@SerializedName("Message")
val message: String
val Message: String

//@SerializedName("Signature")
val signature: String
val Signature: String
}