File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { isDefined } from '@xylabs/typeof'
2- import type { SimpleXyoSigner , XyoConnection } from '@xyo-network/xl1-sdk'
3- import {
4- SimpleXyoGatewayRunner , XyoConnectionMoniker , XyoSignerMoniker ,
5- } from '@xyo-network/xl1-sdk'
2+ import { SimpleXyoGatewayRunner } from '@xyo-network/xl1-sdk'
63
74import { getLocator } from './getLocator.ts'
85
@@ -17,11 +14,7 @@ export const getGateway = async () => {
1714 // Get locator
1815 const locator = await getLocator ( )
1916
20- // Use locator to get connection and signer
21- const connection = await locator . getInstance < XyoConnection > ( XyoConnectionMoniker )
22- const signer = await locator . getInstance < SimpleXyoSigner > ( XyoSignerMoniker )
23-
2417 // Create gateway from connection and signer
25- gateway = new SimpleXyoGatewayRunner ( connection , signer )
18+ gateway = await locator . getInstance < SimpleXyoGatewayRunner > ( SimpleXyoGatewayRunner . defaultMoniker )
2619 return gateway
2720}
You can’t perform that action at this time.
0 commit comments