Skip to content

Commit 9f328c1

Browse files
authored
Merge pull request #1823 from ton-blockchain/version-12
test-smartcont: decrease number of keys in multisig
2 parents e25bd31 + bca9c48 commit 9f328c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crypto/test/test-smartcont.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ bool operator<(const ton::MultisigWallet::Mask& a, const ton::MultisigWallet::Ma
547547
TEST(Smartcon, Multisig) {
548548
auto ms_lib = ton::MultisigWallet::create();
549549

550-
int n = 100;
551-
int k = 99;
550+
int n = 50;
551+
int k = 49;
552552
td::uint32 wallet_id = std::numeric_limits<td::uint32>::max() - 3;
553553
std::vector<td::Ed25519::PrivateKey> keys;
554554
for (int i = 0; i < n; i++) {
@@ -613,10 +613,10 @@ TEST(Smartcon, Multisig) {
613613
LOG(INFO) << "CODE: " << ans.code;
614614
LOG(INFO) << "GAS: " << ans.gas_used;
615615
}
616-
for (int i = 0; i + 1 < 50; i++) {
616+
for (int i = 0; i + 1 < 25; i++) {
617617
qb.sign(i, keys[i]);
618618
}
619-
auto query = qb.create(49, keys[49]);
619+
auto query = qb.create(24, keys[24]);
620620

621621
CHECK(ms->get_n_k() == std::make_pair(n, k));
622622
auto ans = ms.write().send_external_message(query, args());
@@ -629,10 +629,10 @@ TEST(Smartcon, Multisig) {
629629

630630
{
631631
ton::MultisigWallet::QueryBuilder qb(wallet_id, query_id, vm::CellBuilder().finalize());
632-
for (int i = 50; i + 1 < 100; i++) {
632+
for (int i = 25; i + 1 < 50; i++) {
633633
qb.sign(i, keys[i]);
634634
}
635-
query = qb.create(99, keys[99]);
635+
query = qb.create(49, keys[49]);
636636
}
637637

638638
ans = ms.write().send_external_message(query, args());

0 commit comments

Comments
 (0)