From 60f9ed093785791047405e731fd6ac7d5486437f Mon Sep 17 00:00:00 2001 From: Arturo Jamaica Date: Fri, 11 Aug 2023 14:07:11 -0600 Subject: [PATCH] throw error on Json mappers --- build.gradle | 2 +- solana/src/main/java/com/solana/api/getProgramAccounts.kt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c7e38dba..54504a4c 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.1' + classpath 'com.android.tools.build:gradle:7.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/solana/src/main/java/com/solana/api/getProgramAccounts.kt b/solana/src/main/java/com/solana/api/getProgramAccounts.kt index 5ec0f441..ac114255 100644 --- a/solana/src/main/java/com/solana/api/getProgramAccounts.kt +++ b/solana/src/main/java/com/solana/api/getProgramAccounts.kt @@ -58,6 +58,8 @@ class ProgramAccountRequest( put("bytes", filter.memcmp.bytes) } } + + else -> { throw NotImplementedError("Not implemented") } } } } @@ -70,6 +72,7 @@ class ProgramAccountRequest( is Number -> put(k, v) is String -> put(k, v) is Boolean -> put(k, v) + else -> { throw NotImplementedError("Not implemented") } } } }