AbiConstructor.format
Formats an AbiConstructor.AbiConstructor
into a Human Readable ABI Function.
Imports
Named
import { AbiConstructor } from 'ox'
Examples
import { AbiConstructor } from 'ox'
const formatted = AbiConstructor.format({
inputs: [
{ name: 'owner', type: 'address' },
],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor',
})
const formatted: "constructor(address owner)"formatted
Definition
function format(
abiConstructor: AbiConstructor.AbiConstructor,
): string
Source: src/core/AbiConstructor.ts
Parameters
abiConstructor
The ABI Constructor to format.
Return Type
The formatted ABI Constructor.
string