Skip to content

Commit 620bd34

Browse files
refactor(wallet): make policyInstruction required and remove nullable type
1 parent 485c31b commit 620bd34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/contract/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export type ArgsByAction = {
8383
cpiSigners?: readonly anchor.web3.PublicKey[];
8484
};
8585
[SmartWalletAction.CreateChunk]: {
86-
policyInstruction: anchor.web3.TransactionInstruction | null;
86+
policyInstruction: anchor.web3.TransactionInstruction;
8787
cpiInstructions: readonly anchor.web3.TransactionInstruction[];
8888
expiresAt: number;
8989
cpiSigners?: readonly anchor.web3.PublicKey[];
@@ -133,8 +133,8 @@ export interface TransactionBuilderOptions {
133133

134134
export interface TransactionBuilderResult {
135135
readonly transaction:
136-
| anchor.web3.Transaction
137-
| anchor.web3.VersionedTransaction;
136+
| anchor.web3.Transaction
137+
| anchor.web3.VersionedTransaction;
138138
readonly isVersioned: boolean;
139139
readonly recentBlockhash: string;
140140
}

0 commit comments

Comments
 (0)