Skip to content

Commit

Permalink
fix: return address with BFC type
Browse files Browse the repository at this point in the history
  • Loading branch information
wabicai committed Nov 30, 2024
1 parent 5252f54 commit b2321b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/api/benfen/BenfenGetAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class BenfenGetAddress extends BaseMethod<HardwareBenfenGetAddres
const res = await this.device.commands.typedCall('BenfenGetAddress', 'Address', param);
const result = {
path: serializedPath(param.address_n),
address: res.message.address?.toLowerCase() ?? '',
address: hex2BfcAddress(res.message.address?.toLowerCase()),
};
if (this.shouldConfirm) {
this.postPreviousAddressMessage(result);
Expand Down

0 comments on commit b2321b3

Please sign in to comment.