xssnick / tonutils-go

TON SDK Library in pure Golang for interacting with The Open Network ecosystem using native protocols, such as ADNL, RLDP and etc.
Apache License 2.0
492 stars 99 forks source link

wallet.SendWaitTransaction deploys the contract instead of sending the transaction #143

Closed SsNiPeR1 closed 10 months ago

SsNiPeR1 commented 10 months ago

When I try to send a transaction using wallet.SendWaitTransaction, the contract gets deployed. When I do it second time, it tries to re-deploy the contract, which results in "Something happened but we don't understand what.", but no coins get actually sent for some reason.

You can see it here: https://testnet.tonviewer.com/kQDdo8y5BSM2tsDB29FxRsQ1TC5-523KZ5xgbpPjdDwHIhgE

xssnick commented 10 months ago

Hi, it looks like not enough coins on balance to send, and mode 3 is used (default). Try to increase balance on the wallet before sending, or use mode 130 (128+2) to send all remaining balance.