Skip to content

Commit

Permalink
fix: remove unenforced type constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-haynes committed Apr 13, 2023
1 parent 100095b commit 71a2472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
4 changes: 2 additions & 2 deletions packages/accounts/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
actionCreators,
Action,
buildDelegateAction,
NonDelegateAction,
IAction,
signDelegateAction,
signTransaction,
SignedDelegate,
Expand Down Expand Up @@ -149,7 +149,7 @@ interface ActiveDelegatedStakeBalance {
}

interface SignedDelegateOptions {
actions: NonDelegateAction[];
actions: IAction[];
blockHeightTtl: number;
receiverId: string;
}
Expand Down
23 changes: 2 additions & 21 deletions packages/transactions/src/delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,12 @@ import { PublicKey } from '@near-js/crypto';
import { Assignable } from '@near-js/types';
import BN from 'bn.js';

import {
CreateAccount,
DeployContract,
FunctionCall,
Transfer,
Stake,
AddKey,
DeleteKey,
DeleteAccount,
} from './actions';

export type NonDelegateAction =
AddKey
| CreateAccount
| DeleteAccount
| DeleteKey
| DeployContract
| FunctionCall
| Stake
| Transfer;
import { IAction } from './actions';

export class DelegateAction extends Assignable {
senderId: string;
receiverId: string;
actions: Array<NonDelegateAction>;
actions: Array<IAction>;
nonce: BN;
maxBlockHeight: BN;
publicKey: PublicKey;
Expand Down

0 comments on commit 71a2472

Please sign in to comment.