diff --git a/smartcontract/src/main/java/org/ton/java/smartcontract/highload/HighloadWallet.java b/smartcontract/src/main/java/org/ton/java/smartcontract/highload/HighloadWallet.java index 51e4867a..f8f06905 100644 --- a/smartcontract/src/main/java/org/ton/java/smartcontract/highload/HighloadWallet.java +++ b/smartcontract/src/main/java/org/ton/java/smartcontract/highload/HighloadWallet.java @@ -108,12 +108,10 @@ public String getPublicKey(Tonlib tonlib) { public void sendTonCoins(Tonlib tonlib, byte[] secretKey) { - long seqno = 1; // dummy - Cell signingMessageAll = createSigningMessageInternal(); signingMessageAll.refs.add(createDict()); - ExternalMessage msg = createExternalMessage(signingMessageAll, secretKey, seqno, false); + ExternalMessage msg = createExternalMessage(signingMessageAll, secretKey, 1, false); tonlib.sendRawMessage(msg.message.toBocBase64(false)); } @@ -126,7 +124,7 @@ private Cell createDict() { for (Destination destination : getOptions().getHighloadConfig().getDestinations()) { Cell orderHeader = Contract.createInternalMessageHeader(destination.getAddress(), destination.getAmount()); - Cell order = Contract.createCommonMsgInfo(orderHeader, null, null); + Cell order = Contract.createCommonMsgInfo(orderHeader); CellBuilder p = CellBuilder.beginCell(); p.storeUint(destination.getMode(), 8); // mode diff --git a/smartcontract/src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletV2Highload.java b/smartcontract/src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletV2Highload.java index 27c569b3..6ef23b71 100644 --- a/smartcontract/src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletV2Highload.java +++ b/smartcontract/src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletV2Highload.java @@ -107,12 +107,12 @@ public void testWalletV2Highload() throws InterruptedException { contract.deploy(tonlib, keyPair.getSecretKey()); - Utils.sleep(25, "deploying"); + Utils.sleep(30, "deploying"); // transfer coins to multiple destination as specified in options contract.sendTonCoins(tonlib, keyPair.getSecretKey()); - Utils.sleep(30, "sending to multiple destinations"); + Utils.sleep(60, "sending to multiple destinations"); balance = new BigInteger(tonlib.getAccountState(Address.of(bounceableAddress)).getBalance()); log.info("new wallet {} balance: {}", contract.getName(), Utils.formatNanoValue(balance));