Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change method visibility #215

Merged
merged 11 commits into from
Jun 25, 2024
Merged
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"plugins": ["prettier-plugin-jsdoc"],

"jsdocCommentLineStrategy": "multiline",
"jsdocSeparateReturnsFromParam": true,
"jsdocSeparateReturnsFromParam": false,
"jsdocPreferCodeFences": true,
"tsdoc": true,
"jsdocPrintWidth": 120
Expand Down
8 changes: 2 additions & 6 deletions src/abi/abi-coder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export class AbiCoder {
* `false`.
*
* @param {(string | ParamType)[]} types - Array of parameter types to get default values for.
*
* @returns {Result} The default values corresponding to the given types.
*/
getDefaultValue(types: ReadonlyArray<string | ParamType>): Result {
Expand All @@ -197,7 +196,6 @@ export class AbiCoder {
*
* @param {(string | ParamType)[]} types - Array of parameter types.
* @param {any[]} values - Array of values to encode.
*
* @returns {string} The encoded data in hexadecimal format.
*/
encode(types: ReadonlyArray<string | ParamType>, values: ReadonlyArray<any>): string {
Expand All @@ -219,9 +217,7 @@ export class AbiCoder {
*
* @param {(string | ParamType)[]} types - Array of parameter types.
* @param {BytesLike} data - The ABI data to decode.
* @param {boolean} [loose=false] - Enable loose decoding. Default is `false` Default is `false` Default is `false`
* Default is `false`
*
* @param {boolean} [loose=false] - Enable loose decoding. Default is `false`
* @returns {Result} The decoded values.
*/
decode(types: ReadonlyArray<string | ParamType>, data: BytesLike, loose?: boolean): Result {
Expand All @@ -233,6 +229,7 @@ export class AbiCoder {
/**
* Set the default maximum inflation factor.
*
* @ignore
* @param {number} value - The new inflation factor.
*/
static _setDefaultMaxInflation(value: number): void {
Expand Down Expand Up @@ -265,7 +262,6 @@ export class AbiCoder {
* @param {CallExceptionAction} action - The action that triggered the exception.
* @param {Object} tx - The transaction information.
* @param {BytesLike | null} data - The data associated with the call exception.
*
* @returns {CallExceptionError} The corresponding call exception error.
*/
static getBuiltinCallException(
Expand Down
Loading
Loading