Problem
Address.d.ts network argument is a string instead of Network:
create(address: string, network: string): Promise<Address>; https://github.com/LtbLightning/bdk-rn/blob/v31-upgrade/lib/classes/Address.js
For example, fromScript function is correct:
fromScript(script: Script, network: Network): Promise<Address>;
Proposed fixes
create(address: string, network: Network): Promise<Address>;
Problem
Address.d.tsnetwork argument is astringinstead ofNetwork:create(address: string, network: string): Promise<Address>;https://github.com/LtbLightning/bdk-rn/blob/v31-upgrade/lib/classes/Address.jsFor example,
fromScriptfunction is correct:fromScript(script: Script, network: Network): Promise<Address>;Proposed fixes
create(address: string, network: Network): Promise<Address>;