Skip to content

Commit cd16fb5

Browse files
committed
fix: rename tx option
1 parent 04bb407 commit cd16fb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/paymasterclient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type IsSponsorableResponse = {
1010
}
1111

1212
export type SendRawTransactionOptions = {
13-
UserAgent?: string
13+
WalletToTrace?: string
1414
}
1515

1616
export enum GaslessTransactionStatus { New = 0, Pending = 1, Confirmed = 2, Failed = 3, Invalid = 4}
@@ -109,11 +109,11 @@ export class PaymasterClient extends ethers.JsonRpcProvider {
109109

110110
async sendRawTransaction(signedTx: string, opts: SendRawTransactionOptions = {}): Promise<string> {
111111
const policyUUID = this.privatePolicyUUID
112-
if (opts.UserAgent || this.privatePolicyUUID) {
112+
if (opts.WalletToTrace || this.privatePolicyUUID) {
113113
const newConnection = this._getConnection()
114114

115-
if (opts.UserAgent) {
116-
newConnection.setHeader("User-Agent", opts.UserAgent)
115+
if (opts.WalletToTrace) {
116+
newConnection.setHeader("User-Agent", opts.WalletToTrace)
117117
}
118118
if (policyUUID) {
119119
newConnection.setHeader("X-MegaFuel-Policy-Uuid", policyUUID)

0 commit comments

Comments
 (0)