avalanche-wallet-sdk
avalanche-wallet-sdk copied to clipboard
Wallet.d.ts has different version in npm than here in repository
Version 0.10.1 typescript in npm seems to still have importC without parameters but the code has already importC(chained) version...
Wallet.d.ts ....
`/**
* Imports atomic X chain utxos to the current actie X chain address
* @param chainID The chain ID to import from, either `P` or `C`
*/
importX(chainID: AvmImportChainType): Promise<string>;
importP(toAddress?: string): Promise<string>;
importC(): Promise<string>;`
I fix this creating newest version from dev branch yarn link && yarn link @avalabs/avalanche-wallet-sdk
So maybe this is because you have not updated your npm version to support direct transfer between C <--> P