Skip to content

Commit

Permalink
guard: do not throw when building deploy transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
attente committed Nov 7, 2023
1 parent c4eae12 commit 80e32ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/guard/src/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export class GuardSigner implements signers.SapientSigner {
return this.address
}

buildDeployTransaction(_metadata: object): Promise<commons.transaction.TransactionBundle | undefined> {
throw new Error('Guard client cannot be deployed.')
async buildDeployTransaction(_metadata: object): Promise<commons.transaction.TransactionBundle | undefined> {
return undefined
}

async predecorateSignedTransactions(_metadata: object): Promise<commons.transaction.SignedTransactionBundle[]> {
Expand Down

0 comments on commit 80e32ff

Please sign in to comment.