From 79ad611e79d9f7ebf7b3cf1106327720f59db0e3 Mon Sep 17 00:00:00 2001 From: Vignesh Mohankumar Date: Fri, 3 Mar 2023 20:09:36 -0500 Subject: [PATCH] fix: remove $ in hexlified string (#6075) * fix * Update cypress/support/ethereum.ts Co-authored-by: Zach Pomerantz --------- Co-authored-by: Zach Pomerantz --- cypress/support/ethereum.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/ethereum.ts b/cypress/support/ethereum.ts index 74ac142b34..d11d689a00 100644 --- a/cypress/support/ethereum.ts +++ b/cypress/support/ethereum.ts @@ -16,7 +16,7 @@ const TEST_PRIVATE_KEY = '0xe580410d7c37d26c6ad1a837bbae46bc27f9066a466fb3a66e77 // address of the above key const TEST_ADDRESS_NEVER_USE = new Wallet(TEST_PRIVATE_KEY).address const CHAIN_ID = SupportedChainId.GOERLI -const HEXLIFIED_CHAIN_ID = `$0x${CHAIN_ID}` +const HEXLIFIED_CHAIN_ID = `0x${CHAIN_ID.toString(16)}` const provider = new JsonRpcProvider('https://goerli.infura.io/v3/4bf032f2d38a4ed6bb975b80d6340847', 5) const signer = new Wallet(TEST_PRIVATE_KEY, provider)