good morning!!!!

Skip to content
Snippets Groups Projects
Commit 1a51af85 authored by Richard Moore's avatar Richard Moore
Browse files

Prevent mutating transactions when signing (#4789).

parent fc66b8ad
Branches
Tags v6.13.2
No related merge requests found
import { getAddress, resolveAddress } from "../address/index.js";
import { hashMessage, TypedDataEncoder } from "../hash/index.js";
import { AbstractSigner } from "../providers/index.js";
import { AbstractSigner, copyRequest } from "../providers/index.js";
import { computeAddress, Transaction } from "../transaction/index.js";
import {
defineProperties, resolveProperties, assert, assertArgument
......@@ -69,6 +69,7 @@ export class BaseWallet extends AbstractSigner {
}
async signTransaction(tx: TransactionRequest): Promise<string> {
tx = copyRequest(tx);
// Replace any Addressable or ENS name with an address
const { to, from } = await resolveProperties({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment