@keplr-ewallet/ewallet-sdk-eth
Version:
14 lines • 423 B
JavaScript
import {} from "viem";
import { standardError } from "../errors";
export async function getPublicKey() {
if (this.publicKey !== null) {
return this.publicKey;
}
const ret = await this.eWallet.getPublicKey();
if (ret === null) {
throw standardError.ethEWallet.publicKeyFetchFailed({});
}
this.publicKey = `0x${ret}`;
return `0x${ret}`;
}
//# sourceMappingURL=get_public_key.js.map