This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Description
Contract: ETHSwapAgent and BSCSwapAgent
√ Register Standard ERC20 and create swap pair (3102ms)
√ Swap from ETH to BSC (2469ms)
1) Swap from BSC to ETH
> No events were emitted
√ Set BSC to ETH swap fee (498ms)
√ Set ETH to BSC swap fee (447ms)
√ ETH ownership (649ms)
√ BSC ownership (771ms)
6 passing (9s)
1 failing
- Contract: ETHSwapAgent and BSCSwapAgent
Swap from BSC to ETH:
Error: Invalid JSON RPC response: ""
at Object.InvalidResponse (node_modules\web3-core-helpers\src\errors.js:42:16)
at XMLHttpRequest.request.onreadystatechange (node_modules\web3-providers-http\src\index.js:106:32)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules\xhr2-cookies\xml-http-request-event-target.ts:44:13)
at XMLHttpRequest._setReadyState (node_modules\xhr2-cookies\xml-http-request.ts:219:8)
at XMLHttpRequest._onHttpRequestError (node_modules\xhr2-cookies\xml-http-request.ts:379:8)
at ClientRequest. (node_modules\xhr2-cookies\xml-http-request.ts:266:37)
at ClientRequest.emit (node:events:327:20)
at Socket.socketErrorListener (node:_http_client:478:9)
at Socket.emit (node:events:327:20)
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:80:21)