This PR modifies the userop.js library to allow for more extensive rpc configurations. Previously, the rpc configuration only accepted a URL string. However, there was a need to set additional request parameters beyond the URL, such as headers.
To address this, the type of rpc configuration parameters has been extended from rpc?: string to rpc?: string | ConnectionInfo. The ConnectionInfo type, which comes from the ethers library, allows for the setting of a wider range of parameters, such as headers, in addition to the URL.
This PR modifies the
userop.js
library to allow for more extensive rpc configurations. Previously, the rpc configuration only accepted a URL string. However, there was a need to set additional request parameters beyond the URL, such as headers.To address this, the type of rpc configuration parameters has been extended from
rpc?: string
torpc?: string | ConnectionInfo
. TheConnectionInfo
type, which comes from theethers
library, allows for the setting of a wider range of parameters, such as headers, in addition to the URL.