Skip to content

Commit

Permalink
Merge pull request #5 from rhinestonewtf/account-type
Browse files Browse the repository at this point in the history
add account type to automationClient params
  • Loading branch information
kopy-kat authored Aug 19, 2024
2 parents 33c755a + 0deeba6 commit f13b809
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export type ClientParams = {
validator: Address
network: number
account: Address
accountType: 'SAFE' | 'KERNEL' | 'NEXUS'
accountInitCode: Hex
}

Expand Down
6 changes: 3 additions & 3 deletions test/automation/automation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('Automation Service', () => {
beforeAll(async () => {
automationsClient = createAutomationClient({
account,
accountType: 'SAFE',
apiKey: process.env.AUTOMATIONS_API_KEY!,
accountInitCode: '0x',
network: 11155111,
Expand Down Expand Up @@ -54,9 +55,8 @@ describe('Automation Service', () => {
})

it('should sign automation', async () => {
const automationBeforeSigning = await automationsClient.getAutomation(
automationId,
)
const automationBeforeSigning =
await automationsClient.getAutomation(automationId)

expect(automationBeforeSigning.signed).toEqual(false)
expect(automationBeforeSigning.active).toEqual(false)
Expand Down

0 comments on commit f13b809

Please sign in to comment.