Skip to content

Commit

Permalink
feat: account preferred transaction version, setup v3
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Dec 6, 2023
1 parent cca723f commit 5652eb2
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 110 deletions.
5 changes: 4 additions & 1 deletion __tests__/config/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
LegacyCompiledContract,
waitForTransactionOptions,
} from '../../src/types';
import { ETransactionVersion } from '../../src/types/api';
import { toHex } from '../../src/utils/num';

const readContract = (name: string): LegacyCompiledContract =>
Expand Down Expand Up @@ -71,7 +72,9 @@ export const getTestAccount = (provider: ProviderInterface) => {
return new Account(
provider,
toHex(process.env.TEST_ACCOUNT_ADDRESS || ''),
process.env.TEST_ACCOUNT_PRIVATE_KEY || ''
process.env.TEST_ACCOUNT_PRIVATE_KEY || '',
undefined,
process.env.TX_VERSION === 'v3' ? ETransactionVersion.V3 : undefined // TODO: enable setup to test diff TX versions
);
};

Expand Down
Loading

0 comments on commit 5652eb2

Please sign in to comment.