diff --git a/packages/provider/src/transports/wallet-request-handler.ts b/packages/provider/src/transports/wallet-request-handler.ts index 60f3cbeab..d2640169e 100644 --- a/packages/provider/src/transports/wallet-request-handler.ts +++ b/packages/provider/src/transports/wallet-request-handler.ts @@ -349,10 +349,11 @@ export class WalletRequestHandler implements ExternalProvider, JsonRpcHandler, P // prompter is null, so we'll sign from here sig = await account.signMessage(prefixedMessage, chainId ?? this.defaultChainId(), sequenceVerified ? 'eip6492' : 'ignore') } else { - const promptResultForDeployment = await this.handleConfirmWalletDeployPrompt(this.prompter, account, sequenceVerified, chainId) - if (promptResultForDeployment) { - sig = await this.prompter.promptSignMessage({ chainId: chainId, message: prefixedMessage }, sequenceVerified, this.connectOptions) - } + sig = await this.prompter.promptSignMessage({ + chainId: chainId, + message: prefixedMessage, + eip6492: sequenceVerified + }, this.connectOptions) } if (sig && sig.length > 0) { @@ -393,10 +394,11 @@ export class WalletRequestHandler implements ExternalProvider, JsonRpcHandler, P // prompter is null, so we'll sign from here sig = await account.signTypedData(typedData.domain, typedData.types, typedData.message, chainId ?? this.defaultChainId(), sequenceVerified ? 'eip6492' : 'ignore') } else { - const promptResultForDeployment = await this.handleConfirmWalletDeployPrompt(this.prompter, account, sequenceVerified, chainId) - if (promptResultForDeployment) { - sig = await this.prompter.promptSignMessage({ chainId: chainId, typedData: typedData }, sequenceVerified, this.connectOptions) - } + sig = await this.prompter.promptSignMessage({ + chainId: chainId, + typedData: typedData, + eip6492: sequenceVerified + }, this.connectOptions) } if (sig && sig.length > 0) { @@ -844,7 +846,7 @@ export interface WalletUserPrompter { promptConnect(options?: ConnectOptions): Promise promptSignInConnect(options?: ConnectOptions): Promise - promptSignMessage(message: MessageToSign, sequenceVerified: boolean, options?: ConnectOptions): Promise + promptSignMessage(message: MessageToSign, options?: ConnectOptions): Promise promptSignTransaction(txn: commons.transaction.Transactionish, chainId?: number, options?: ConnectOptions): Promise promptSendTransaction(txn: commons.transaction.Transactionish, chainId?: number, options?: ConnectOptions): Promise promptConfirmWalletDeploy(chainId: number, options?: ConnectOptions): Promise diff --git a/packages/provider/src/types.ts b/packages/provider/src/types.ts index 1e93ee4d9..52f258855 100644 --- a/packages/provider/src/types.ts +++ b/packages/provider/src/types.ts @@ -264,6 +264,8 @@ export interface MessageToSign { message?: Uint8Array typedData?: TypedData chainId?: number + + eip6492?: boolean } export type ETHAuthProof = AuthETHAuthProof