Methods
(inner) ensure0x(str)
Adds a leading "0x" prefix to a string if it doesn't have already.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | The string |
(inner) logError(logFunction, e)
Logs the error object. Only stringifies the input.
Parameters:
Name | Type | Description |
---|---|---|
logFunction |
function | Log function to use with the error message. |
e |
any | Error object or message. |
(inner) logFailedResponse(logFunction, response)
Logs relevant information from a failed http response.
Parameters:
Name | Type | Description |
---|---|---|
logFunction |
function | Log function to use with the error message. |
response |
AxiosResponse | The response object. |
(inner) remove0x(val) → {string}
Removes leading "0x" pefix from a string if it has any.
Parameters:
Name | Type | Description |
---|---|---|
val |
string | The input string. |
(inner) removeEnclosingDQuotes(str) → {string}
Removes enclosing double quotes from a string. Used for formatting messages coming from the Secret Store nodes.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | The string to format. |