@@ -58,7 +58,7 @@ describe('MBE mpcv2 recovery', () => {
5858 it ( 'should recover a HETH (an eth-like) wallet by calling the enclaved express service' , async ( ) => {
5959 const etherscanTxlistNock = nock ( 'https://api.etherscan.io' )
6060 . get (
61- `/v2/api?chainid=17000&module=account&action=txlist&address=0x43442e403d64d29c4f64065d0c1a0e8edc03d6c8` ,
61+ `/v2/api?chainid=17000&module=account&action=txlist&address=0x43442e403d64d29c4f64065d0c1a0e8edc03d6c8&apikey=etherscan-api-key ` ,
6262 )
6363 . matchHeader ( 'any' , ( ) => true )
6464 . reply ( 200 , {
@@ -71,7 +71,7 @@ describe('MBE mpcv2 recovery', () => {
7171
7272 const etherscanBalanceNock = nock ( 'https://api.etherscan.io' )
7373 . get (
74- `/v2/api?chainid=17000&module=account&action=balance&address=0x43442e403d64d29c4f64065d0c1a0e8edc03d6c8` ,
74+ `/v2/api?chainid=17000&module=account&action=balance&address=0x43442e403d64d29c4f64065d0c1a0e8edc03d6c8&apikey=etherscan-api-key ` ,
7575 )
7676 . matchHeader ( 'any' , ( ) => true )
7777 . reply ( 200 , {
@@ -105,6 +105,7 @@ describe('MBE mpcv2 recovery', () => {
105105 ecdsaEthLikeRecoverySpecificParams : {
106106 walletContractAddress : '0x43442e403d64d29c4f64065d0c1a0e8edc03d6c8' ,
107107 bitgoDestinationAddress : '0x43442e403d64d29c4f64065d0c1a0e8edc03d6c8' , //placeholder
108+ apiKey : `etherscan-api-key` ,
108109 } ,
109110 } ,
110111 } ) ;
0 commit comments