Skip to content

Commit

Permalink
Merge pull request #663 from eco-stake/add-keplr-eth-features
Browse files Browse the repository at this point in the history
Add Eth keplr features if slip44 is 60
  • Loading branch information
tombeynon authored Nov 1, 2022
2 parents 9def939 + 7a28779 commit e69d9fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/utils/Network.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,17 @@ class Network {
currencies: [currency],
feeCurrencies: [{...currency, gasPriceStep: this.gasPriceStep }]
}
if(this.data.keplrFeatures){
data.features = this.data.keplrFeatures
if(this.keplrFeatures()){
data.features = this.keplrFeatures()
}
return data
}

keplrFeatures(){
if(this.data.keplrFeatures) return this.data.keplrFeatures
if(this.slip44 === 60) return ["ibc-transfer", "ibc-go", "eth-address-gen", "eth-key-sign"]
}

buildKeywords(){
return _.compact([
...this.chain?.keywords || [],
Expand Down

0 comments on commit e69d9fd

Please sign in to comment.