Skip to content

Commit 697dac8

Browse files
committed
fix: execution script Ownable interface instead of Governable
1 parent 487c5e9 commit 697dac8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contracts/scripts/utils/execution.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { type ContractTransaction } from "ethers";
22
import fs from "fs";
33
import { type BuilderTransaction, template, transaction, transactionBuilderUrl } from "./tx-builder";
44

5-
const governableAbi = [
5+
const ownableAbi = [
66
{
77
inputs: [],
8-
name: "governor",
8+
name: "owner",
99
outputs: [
1010
{
1111
internalType: "address",
@@ -24,8 +24,8 @@ export const execute = async (tx: ContractTransaction) => {
2424
const hre = require("hardhat");
2525
const { ethers } = hre;
2626

27-
const contract = await ethers.getContractAt(governableAbi, tx.to);
28-
const owner = await contract.governor();
27+
const contract = await ethers.getContractAt(ownableAbi, tx.to);
28+
const owner = await contract.owner();
2929
const isContract = (await ethers.provider.getCode(owner)).length > 2;
3030
if (isContract) {
3131
// Don't execute, just log the tx. It must be submitted for execution separately.

0 commit comments

Comments
 (0)