Skip to content

Commit

Permalink
feat: changed zkevm transaction url to be the new generic screen (#1360)
Browse files Browse the repository at this point in the history
Co-authored-by: Carmen Liu <[email protected]>
  • Loading branch information
scastleman-immutable and carmen0208 authored Jan 29, 2024
1 parent aa02978 commit adfff27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/passport/sdk/src/confirmation/confirmation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export default class ConfirmationScreen {
if (chainType === TransactionApprovalRequestChainTypeEnum.Starkex) {
href = this.getHref('transaction', { transactionId, etherAddress, chainType });
} else {
href = this.getHref('zkevm', {
transactionId, etherAddress, chainType, chainId,
href = this.getHref('zkevm/transaction', {
transactionID: transactionId, etherAddress, chainType, chainID: chainId,
});
}
this.showConfirmationScreen(href, messageHandler, resolve);
Expand Down
2 changes: 1 addition & 1 deletion packages/passport/sdk/src/zkEvm/sendTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const sendTransaction = ({
guardianClient,
user,
}: EthSendTransactionParams): Promise<string> => guardianClient
.withConfirmationScreen({ width: 480, height: 520 })(async () => {
.withConfirmationScreen({ width: 480, height: 720 })(async () => {
const transactionRequest: TransactionRequest = params[0];
if (!transactionRequest.to) {
throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'eth_sendTransaction requires a "to" field');
Expand Down

0 comments on commit adfff27

Please sign in to comment.