Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! test: add test for r…
Browse files Browse the repository at this point in the history
…eceivers account precheck

Signed-off-by: Nadezhda Popova <[email protected]>
  • Loading branch information
nadezhdapopovaa committed Dec 16, 2024
1 parent 2dc942a commit 2ccf78d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/server/tests/acceptance/rpc_batch1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,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);

if (verifyAccount && !verifyAccount.account) {
verifyAccount == (await mirrorNode.get(`/accounts/${toAddress}`, requestId));
}

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

const tx = {
Expand Down Expand Up @@ -1652,6 +1656,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);

if (verifyAccount && !verifyAccount.account) {
verifyAccount == (await mirrorNode.get(`/accounts/${toAddress}`, requestId));
}

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

const tx = {
Expand Down

0 comments on commit 2ccf78d

Please sign in to comment.