avalanche-wallet-sdk icon indicating copy to clipboard operation
avalanche-wallet-sdk copied to clipboard

Wallet.d.ts has different version in npm than here in repository

Open eino-makitalo opened this issue 3 years ago • 1 comments

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>;`

eino-makitalo avatar Dec 27 '21 11:12 eino-makitalo

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

eino-makitalo avatar Dec 27 '21 16:12 eino-makitalo