Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! test: add test for receivers account prec…
Browse files Browse the repository at this point in the history
…heck

Signed-off-by: Nadezhda Popova <nadezhda.popova@limechain.tech>
  • Loading branch information
nadezhdapopovaa committed Dec 13, 2024
1 parent 41102a0 commit 5850f89
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/server/tests/acceptance/rpc_batch1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,10 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
}

const toAddress = Utils.idToEvmAddress(receipt.accountId.toString());
const verifyAccount = await mirrorNode.get(`/accounts/${toAddress}`, requestId);

expect(verifyAccount.receiver_sig_required).to.be.true;

const tx = {
...defaultLegacyTransactionData,
chainId: Number(CHAIN_ID),
Expand All @@ -1620,7 +1624,6 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
};

const signedTx = await accounts[0].wallet.signTransaction(tx);
await new Promise((r) => setTimeout(r, 3000));

const error = predefined.RECEIVER_SIGNATURE_ENABLED;

Expand All @@ -1647,6 +1650,10 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
}

const toAddress = Utils.idToEvmAddress(receipt.accountId.toString());
const verifyAccount = await mirrorNode.get(`/accounts/${toAddress}`, requestId);

expect(verifyAccount.receiver_sig_required).to.be.false;

const tx = {
...defaultLegacyTransactionData,
chainId: Number(CHAIN_ID),
Expand Down

0 comments on commit 5850f89

Please sign in to comment.