Skip to content

Commit d49421b

Browse files
committed
Add SimpleXyoGatewayRunner to locator
1 parent 9d0cef8 commit d49421b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/getLocator.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { isDefined } from '@xylabs/typeof'
22
import type { ProviderFactoryLocator } from '@xyo-network/xl1-sdk'
3-
import { buildJsonRpcProviderLocator, SimpleXyoSigner } from '@xyo-network/xl1-sdk'
3+
import {
4+
buildJsonRpcProviderLocator, SimpleXyoGatewayRunner, SimpleXyoSigner,
5+
} from '@xyo-network/xl1-sdk'
46

57
import { getSignerAccount } from './getSignerAccount.ts'
68
import { getTransportFactory } from './getTransportFactory.ts'
@@ -18,6 +20,7 @@ export const getLocator = async () => {
1820
// Register the signer with the locator
1921
const account = await getSignerAccount()
2022
locator.register(SimpleXyoSigner.factory<SimpleXyoSigner>(SimpleXyoSigner.dependencies, { account }))
23+
locator.register(SimpleXyoGatewayRunner.factory<SimpleXyoGatewayRunner>(SimpleXyoGatewayRunner.dependencies))
2124

2225
// Return the locator
2326
return locator

0 commit comments

Comments
 (0)