Skip to content

Commit 7576204

Browse files
committed
Moved system contract to lib
1 parent 2fce69b commit 7576204

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/wharf.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { APIClient } from '@wharfkit/antelope'
22
import { Chains, Session } from '@wharfkit/session'
33
import { WalletPluginPrivateKey } from '@wharfkit/wallet-plugin-privatekey'
4+
import * as SystemContract from '$lib/contracts/eosio'
45
import { NODEOS_API_URL, PROPOSER_PERMISSION, PROPOSER_PRIVATE_KEY } from './constants'
56
import { WalletPluginMultiSig } from './plugins/multisig'
67

78
export const client = new APIClient({ url: NODEOS_API_URL })
9+
export const systemContract = new SystemContract.Contract({ client })
810

911
export const walletPlugin = new WalletPluginPrivateKey(PROPOSER_PRIVATE_KEY)
1012

proposals/unwindvf1/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import type { Action } from '@wharfkit/antelope'
22
import { NETWORK_AUTHORITY } from '$lib/constants'
3-
import * as SystemContract from '$lib/contracts/eosio'
43
import { logProposalLink } from '$lib/utils'
5-
import { client, makeSession } from '$lib/wharf'
6-
7-
const systemContract = new SystemContract.Contract({ client })
4+
import { makeSession, systemContract } from '$lib/wharf'
85

96
const actions: Action[] = [
107
// 1 Update admin.grants permissions

0 commit comments

Comments
 (0)