Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Dec 12, 2024
1 parent 370e8e2 commit e737c3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/schain/ExecutionLayer/ExecutionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ contract ExecutionManager is AccessControlEnumerableUpgradeable, IExecutionManag
return Protocol.MetaAction({
targetChainHash: targetChain,
actions: Protocol.encodeActions(actions),
nextMetaAction: "0x",
postActions: "0x"
nextMetaAction: "",
postActions: ""
});
}

Expand Down
10 changes: 6 additions & 4 deletions test/ExecutionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ describe("ExecutionManager", () => {
ethers.id("Send")
)
);
const metaAction = await sourceExecutionManager.createMetaAction(
const metaAction = (await sourceExecutionManager.createMetaAction(
targetSchainHash,
{
[{
executor: ethers.id("Send"),
arguments: await send.encodeArguments(user)
}
);
}]
)).toObject();

const executeReceipt = await (await sourceExecutionManager.connect(user).execute(
metaAction
Expand All @@ -182,5 +182,7 @@ describe("ExecutionManager", () => {

expect(await sourceExecutionManager.getMetaActionStatus(metaActionId)).to.be.equal(MetaActionStatus.SUCCEED);
expect(await targetExecutionManager.getMetaActionStatus(metaActionId)).to.be.equal(MetaActionStatus.SUCCEED);


});
});

0 comments on commit e737c3c

Please sign in to comment.