Skip to content

Commit

Permalink
Merge branch 'master' into fix-allow-null-voting-period-for-offchain-…
Browse files Browse the repository at this point in the history
…spaces
  • Loading branch information
wa0x6e committed Dec 5, 2024
2 parents dd6c04c + 8c28fad commit 5a264de
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions apps/ui/src/composables/useActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ export function useActions() {
choices: string[],
labels: string[],
app: string,
created: number,
start: number,
min_end: number,
max_end: number,
Expand All @@ -312,6 +313,7 @@ export function useActions() {
choices,
labels,
app,
created,
start,
min_end,
max_end,
Expand Down
3 changes: 2 additions & 1 deletion apps/ui/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const knownHosts = [
'worldassociation.org',
'safe.mainnet.frax.com',
'horizen-eon.safe.onchainden.com',
'safe.fantom.network'
'safe.fantom.network',
'safe.apechain.com'
];
const parentUrl =
window.location != window.parent.location
Expand Down
1 change: 1 addition & 0 deletions apps/ui/src/networks/evm/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export function createActions(
choices: string[],
labels: string[],
app: string,
created: number,
start: number,
min_end: number,
max_end: number,
Expand Down
4 changes: 2 additions & 2 deletions apps/ui/src/networks/offchain/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ export function createActions(
choices: string[],
labels: string[],
app: string,
created: number,
start: number,
min_end: number,
max_end: number,
executions: ExecutionInfo[]
) {
const provider = getProvider(space.snapshot_chain_id as number);

const plugins = await getPlugins(executions);

const data = {
Expand All @@ -153,7 +153,7 @@ export function createActions(
snapshot: (await provider.getBlockNumber()) - EDITOR_SNAPSHOT_OFFSET,
plugins: JSON.stringify(plugins),
app: app || EDITOR_APP_NAME,
timestamp: Math.floor(Date.now() / 1000)
timestamp: created
};

return client.propose({ signer: web3.getSigner(), data });
Expand Down
1 change: 1 addition & 0 deletions apps/ui/src/networks/starknet/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ export function createActions(
choices: string[],
labels: string[],
app: string,
created: number,
start: number,
min_end: number,
max_end: number,
Expand Down
1 change: 1 addition & 0 deletions apps/ui/src/networks/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export type ReadOnlyNetworkActions = {
choices: string[],
labels: string[],
app: string,
created: number,
start: number,
min_end: number,
max_end: number,
Expand Down

0 comments on commit 5a264de

Please sign in to comment.