Skip to content

Commit

Permalink
Revert "add debug hashMessage function to SmartWalletFactory"
Browse files Browse the repository at this point in the history
This reverts commit cf1ad78.
  • Loading branch information
mortelli authored and antomor committed Nov 28, 2022
1 parent 3426a47 commit 27157f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
14 changes: 0 additions & 14 deletions contracts/factory/SmartWalletFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,6 @@ contract SmartWalletFactory is ISmartWalletFactory {
return nonces[from];
}

function hashMessage(address owner,
address recoverer,
uint256 index,
bytes calldata sig
) external returns (bytes32){
bytes32 _hash = keccak256(abi.encodePacked(
address(this),
owner,
recoverer,
index
));
return _hash;
}

function createUserSmartWallet(
address owner,
address recoverer,
Expand Down
31 changes: 0 additions & 31 deletions types/truffle-contracts/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4976,37 +4976,6 @@ export interface SmartWalletFactoryInstance extends Truffle.ContractInstance {

nonce(from: string | BN, txDetails?: Truffle.TransactionDetails): Promise<BN>;

hashMessage: {
(
owner: string | BN,
recoverer: string | BN,
index: number | BN | string,
sig: string,
txDetails?: Truffle.TransactionDetails
): Promise<Truffle.TransactionResponse>;
call(
owner: string | BN,
recoverer: string | BN,
index: number | BN | string,
sig: string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
sendTransaction(
owner: string | BN,
recoverer: string | BN,
index: number | BN | string,
sig: string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
estimateGas(
owner: string | BN,
recoverer: string | BN,
index: number | BN | string,
sig: string,
txDetails?: Truffle.TransactionDetails
): Promise<number>;
};

createUserSmartWallet: {
(
owner: string | BN,
Expand Down

0 comments on commit 27157f4

Please sign in to comment.