Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
hujw77 committed Dec 11, 2024

Verified

This commit was signed with the committer’s verified signature.
hujw77 echo
1 parent dc94b3f commit bc03b08
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions script/CreateXAccount.s.sol
Original file line number Diff line number Diff line change
@@ -19,17 +19,17 @@ contract CreateXAccountScript is Script {

// Create XAccount on target chain(sepolia) for timelock on source chain(arbitrum-sepolia).
function run() public {
address source_chain_address = msg.sender;
address mockedTimelockContract = msg.sender;
vm.createSelectFork("sepolia");
createXAccount(ARBITRUM_SEPOLIA_CHAINID, source_chain_address, ORMPUPGRADEABLEPORT, address(0));
createXAccount(ARBITRUM_SEPOLIA_CHAINID, mockedTimelockContract, ORMPUPGRADEABLEPORT, address(0));
}

/// @dev The function is utilized to create a xAccount on the target chain.
/// @param fromChainId Source chain id.
/// @param owner owner on source chain.
/// @param timelock Timelock contract address on source chain.
/// @param port Msgport address for send msgport.
/// @param recovery The default safe recovery module address for xAccount.
function createXAccount(uint256 fromChainId, address owner, address port, address recovery) public broadcast {
UIFACTORY.create(fromChainId, owner, port, recovery);
function createXAccount(uint256 fromChainId, address timelock, address port, address recovery) public broadcast {
UIFACTORY.create(fromChainId, timelock, port, recovery);
}
}
6 changes: 3 additions & 3 deletions script/GenerateAction.s.sol
Original file line number Diff line number Diff line change
@@ -39,11 +39,11 @@ contract GenerateActionScript is Script {

// GenerateAction on target chain(sepolia) for timelock on source chain(arbitrum-sepolia).
function run() public {
address source_chain_address = msg.sender;
address mockedTimelockContract = msg.sender;
vm.createSelectFork("sepolia");
// get all deployed XAccounts for xOwner(source chainid + source chaind address)
// get all deployed XAccounts for xOwner(source chainid + source TimelockContract address)
(address[] memory xAccounts, address[] memory modules) =
UIFACTORY.getDeployed(ARBITRUM_SEPOLIA_CHAINID, source_chain_address);
UIFACTORY.getDeployed(ARBITRUM_SEPOLIA_CHAINID, mockedTimelockContract);
// select one XAccount to generate action
address xAccount = xAccounts[0];
address module = modules[0];

0 comments on commit bc03b08

Please sign in to comment.