Skip to content

Commit

Permalink
Update loadAbi docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceManiac committed Apr 19, 2024
1 parent b0cd52c commit 8f6b039
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/engine/paima-runtime/src/cde-config/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ export function getEarliestStartSlot(config: ChainDataExtension[]): number {
return isFinite(minStartSlot) ? minStartSlot : -1;
}

// returns pair [rawAbiFileData, artifactObject.abi]
/**
* Read a contract ABI from a JSON file into an array.
* @param abiPath The JSON file path to read from.
* @returns The root if it is an array, the `abi` field if the root is an object, or `[]` on error.
*/
export async function loadAbi(abiPath: string): Promise<any[]> {
let abiFileData: string;
try {
Expand Down

0 comments on commit 8f6b039

Please sign in to comment.