Skip to content

Commit

Permalink
Fix getting network chain id in OneInchService
Browse files Browse the repository at this point in the history
  • Loading branch information
omurovch committed Jun 15, 2021
1 parent 769b148 commit cb4b678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
18 changes: 4 additions & 14 deletions oneinchkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-android-extensions'
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"

defaultConfig {
minSdkVersion 26
Expand All @@ -24,17 +21,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}

}

dependencies {

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OneInchService(
networkType: NetworkType
) {
private val logger = Logger.getLogger("OneInchService")
private val url = "https://api.1inch.exchange/v3.0/${networkType.getNetwork().id}/"
private val url = "https://api.1inch.exchange/v3.0/${networkType.chainId}/"
private val service: OneInchServiceApi

init {
Expand Down

0 comments on commit cb4b678

Please sign in to comment.