Skip to content

Commit

Permalink
fix(sdk): fix address imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sammccord committed Jul 17, 2024
1 parent 604cb06 commit 2c2bf96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/src/Actions/ContractAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
writeContractActionExecute,
} from '@boostxyz/evm';
import { bytecode } from '@boostxyz/evm/artifacts/contracts/actions/ContractAction.sol/ContractAction.json';
import type { Hex } from 'viem';
import type { Address, Hex } from 'viem';
import type {
DeployableOptions,
GenericDeployableParams,
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/Actions/ERC721MintAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
writeErc721MintActionValidate,
} from '@boostxyz/evm';
import { bytecode } from '@boostxyz/evm/artifacts/contracts/actions/ERC721MintAction.sol/ERC721MintAction.json';
import type { Hex } from 'viem';
import type { Address, Hex } from 'viem';
import type {
DeployableOptions,
GenericDeployableParams,
Expand Down
11 changes: 2 additions & 9 deletions packages/sdk/src/Validators/SignerValidator.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { loadFixture } from '@nomicfoundation/hardhat-network-helpers';
import { signMessage, verifyMessage } from '@wagmi/core';
import { signMessage } from '@wagmi/core';
import { encodePacked, isAddress, keccak256 } from 'viem';
import { beforeAll, describe, expect, test } from 'vitest';
import { accounts, accountsWithViemAccount } from '../../test/accounts';
import { accounts } from '../../test/accounts';
import {
type Fixtures,
defaultOptions,
Expand Down Expand Up @@ -57,13 +57,6 @@ describe('SignerValidator', () => {
account: untrustedSigner.privateKey,
message: { raw: message },
});
console.log(
await verifyMessage(defaultOptions.config, {
signature: trustedSignature,
message: message,
address: trustedSigner.account,
}),
);
expect(
await validator.validate({
signer: trustedSigner.account,
Expand Down

0 comments on commit 2c2bf96

Please sign in to comment.