kukai-wallet / kukai

Web wallet for the Tezos blockchain
Apache License 2.0
180 stars 100 forks source link

Transaction to multiple destinations #27

Closed tezosfaust closed 5 years ago

tezosfaust commented 5 years ago

Hello!

I tried to make a transaction to multiple destinations and got the following error: "Operation failed! Id not known: ValidationError"

Is there a way to fix this problem? If so, please tell me how.

Or is it because of the new Babylon protocoll? If so, will Kukai be updated?

klassare commented 5 years ago

Kukai have been updated for Babylon, but it's a very large update so there could be a few bugs that need to be fixed. I will see if I can reproduce that error.

Are you sending the batch from a tz or KT address?

tezosfaust commented 5 years ago

thanks for your reply @klassare

We are sending from a KT address

klassare commented 5 years ago

Found a bug in the new Zarith int encoding. Deploying a fix for it now., thanks for opening an issue!

tezoskukaiuser commented 5 years ago

Hello I had the same bug as tezosfaust. Looks like you did some update. But now another error shows up in the confirmation window: (also sending from KT address)

Operation failed! Id not known: proto.005-PsBabyM1.gas_exhausted.operation

Please help.

klassare commented 5 years ago

The gas limit and fee need to be set manually right now for batch transactions. We will try to remove this manual need asap. For now, set the gas limit to 15 400 and fee to 0.0017 if you get the gas_exhausted.operation error. If you get the same error again, you can bump up the gas limit to 44 800 and fee to 0.0052.

tezoskukaiuser commented 5 years ago

Thanks for your answer. However it doesn't work.

1) with setting gas limit to 15 400 and fee to 0.0017 - I get the following error: Operation failed! Id not known: proto.005-PsBabyM1.michelson_v1.bad_contract_parameter

2) with setting gas limit to 44 800 and fee to 0.0052 - I get the following error: Operation failed! Id not known: proto.005-PsBabyM1.contract.balance_too_low

klassare commented 5 years ago

The wallet have now been updated now to use better default values for batch transactions. The manager address (tz1) will pay the transactions fee when you send batch transactions from a KT address. So, make sure you have enough balance on the tz address to cover the fees.

tezoskukaiuser commented 5 years ago

Perfekt. It worked. There is still a max operation size, so I split payments (approx 150) in two different transactions. I really appreciate your help. Thanks a lot!

roccomuso commented 5 years ago

what's the ideal gas value when sending a normal tx? Like half the max limit?

klassare commented 5 years ago

@roccomuso The ideal gas value should be determined by simulating (preapply or run_operation) the transaction. To simplify it, the Kukai wallet is using the following default values based on 4 common situations.