ava-labs / avalanche-wallet

The Avalanche web wallet
https://wallet.avax.network/
BSD 3-Clause "New" or "Revised" License
240 stars 164 forks source link

Cross-chain TX error on fresh Local Network #186

Open miracatici opened 2 years ago

miracatici commented 2 years ago

Hello everyone, I would like to create my own local test network. I bootstrap my network with 5 nodes via official documents (here) config.json and genesis.json files are kept default except http-host IP and port. I can use all APIs with no problem.

I also would like to use the wallet service, but here comes the problem. It seems that genesis.json file is working and my initial funds are on the newly created address. When I try to make cross-chain txs I've got two different errors. If I try to make transaction from X-Chain to P-Chain it gives me Error: insufficient funds [1] error. If I try C-Chain to P-Chain it gives Error: couldn't issue tx: tx produces more unlocked %q (%d) than it consumes (%d) [2] If I try to make these transactions with API, done successfully with no errors.

It seems that the errors are caused by wallet-sdk or a bug on a client-side. I think reproduction is easy. You can deploy the local network with default configs, and run the wallet service.

1 2

LeoFraq commented 1 year ago

Hi @miracatici, I'm following up on this as I'm facing a similar issue. Did you ever manage to solve this? Or did you just work around it with the APIs?

miracatici commented 1 year ago

Hi @LeoFraq, I have not tested it in a while. We did workarounds at that time.