Skip to content

Commit 30829ca

Browse files
committed
test(fix): normalize case for contractAddress comparison in contract deployment tests (#3814)
Signed-off-by: Michał Walczak <[email protected]>
1 parent 5139d90 commit 30829ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/server/tests/acceptance/rpc_batch1.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,9 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
853853
expect(deploymentReceiptInBlock).to.have.property('to');
854854
expect(deploymentReceiptInBlock.to).to.be.null;
855855
expect(deploymentReceiptInBlock.contractAddress).to.not.be.null;
856-
expect(deploymentReceiptInBlock.contractAddress).to.equal(contractDeployment.target);
856+
expect(deploymentReceiptInBlock.contractAddress.toLowerCase()).to.equal(
857+
contractDeployment.target.toString().toLowerCase(),
858+
);
857859
});
858860

859861
it('should return null for "eth_getBlockReceipts" when block is not found', async function () {

0 commit comments

Comments
 (0)