@ledgerhq/coin-celo
Version:
21 lines • 773 B
JavaScript
import eip55 from "eip55";
/*
NOTE: we should use the evm resolver for celo, but due to the signer types conflicting for now
we are using a separate resolver
*/
const resolver = (signerContext) => {
return async (deviceId, { path, verify, currency }) => {
const { address, publicKey } = await signerContext(deviceId, signer => {
/* istanbul ignore next: optional chaining + undefined is a valid value */
const chainId = currency?.ethereumLikeInfo?.chainId.toString();
return signer.getAddress(path, verify, false, chainId);
});
return {
address: eip55.encode(address),
publicKey,
path,
};
};
};
export default resolver;
//# sourceMappingURL=hw-getAddress.js.map