(chain = SameOrCrossChain.same)
| 26 | * @returns The connected wallet. |
| 27 | */ |
| 28 | export const getUserWallet = (chain = SameOrCrossChain.same) => { |
| 29 | const integrationInfo = readIntegrationInfo(); |
| 30 | const provider = getProvider(chain); |
| 31 | const mnemonic = chain === SameOrCrossChain.cross ? integrationInfo.crossChainMnemonic! : integrationInfo.mnemonic; |
| 32 | return ethers.Wallet.fromMnemonic(mnemonic).connect(provider); |
| 33 | }; |
| 34 | |
| 35 | /** |
| 36 | * Reads the "secrets.env" of the particular integration to obtain the Airnode mnemonic of the Airnode wallet. This |
no test coverage detected