@keplr-wallet/cosmos
Advanced tools
Comparing version 0.9.7 to 0.9.9-rc.0
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Bech32Address = void 0; | ||
const bech32_1 = __importDefault(require("bech32")); | ||
const bech32_1 = __importStar(require("bech32")); | ||
class Bech32Address { | ||
@@ -43,3 +59,3 @@ constructor(address) { | ||
} | ||
return new Bech32Address(new Uint8Array(decoded.words)); | ||
return new Bech32Address(new Uint8Array(bech32_1.fromWords(decoded.words))); | ||
} | ||
@@ -46,0 +62,0 @@ static validate(bech32Address, prefix) { |
{ | ||
"name": "@keplr-wallet/cosmos", | ||
"version": "0.9.7", | ||
"version": "0.9.9-rc.0", | ||
"main": "build/index.js", | ||
@@ -22,4 +22,4 @@ "author": "chainapsis", | ||
"@cosmjs/launchpad": "^0.24.0-alpha.25", | ||
"@keplr-wallet/types": "^0.9.6", | ||
"@keplr-wallet/unit": "^0.9.6", | ||
"@keplr-wallet/types": "^0.9.9-rc.0", | ||
"@keplr-wallet/unit": "^0.9.9-rc.0", | ||
"axios": "^0.21.0", | ||
@@ -31,3 +31,3 @@ "bech32": "^1.1.4", | ||
}, | ||
"gitHead": "5295e9b866f01459b7809b54b6cf9c146b115721" | ||
"gitHead": "2aac30ca0637e5f1f4fb4699565ab5b1cc6bdb70" | ||
} |
@@ -1,2 +0,2 @@ | ||
import bech32 from "bech32"; | ||
import bech32, { fromWords } from "bech32"; | ||
import { Bech32Config } from "@keplr-wallet/types"; | ||
@@ -43,3 +43,3 @@ | ||
return new Bech32Address(new Uint8Array(decoded.words)); | ||
return new Bech32Address(new Uint8Array(fromWords(decoded.words))); | ||
} | ||
@@ -46,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1044931
70
19734