Skip to content

Commit

Permalink
add base world api to result
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed Aug 7, 2024
1 parent 9b33a2b commit 7763482
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/world/ts/getWorldAbi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Client, Abi, Address, getAddress } from "viem";
import IBaseWorldAbi from "../out/IBaseWorld.sol/IBaseWorld.abi.json";
import { functionSignatureToAbiItem } from "./functionSignatureToAbiItem";
import { getFunctions } from "./getFunctions";

Expand All @@ -20,6 +21,7 @@ export async function getWorldAbi({
toBlock,
});
const worldAbi = worldFunctions.map((func) => functionSignatureToAbiItem(func.signature));
const abi = [...IBaseWorldAbi, ...worldAbi];

return worldAbi;
return abi;
}

0 comments on commit 7763482

Please sign in to comment.