Skip to content

Commit 1271c37

Browse files
committed
fix: remove index signature from base request
1 parent 5b16d0c commit 1271c37

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/xrpl/src/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class Client extends EventEmitter<EventTypes> {
343343
const request = {
344344
...req,
345345
account:
346-
typeof req.account === 'string'
346+
"account" in req && typeof req.account === 'string'
347347
? ensureClassicAddress(req.account)
348348
: undefined,
349349
api_version: req.api_version ?? this.apiVersion,

packages/xrpl/src/models/methods/baseMethod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { LedgerIndex } from '../common'
33
import type { Request } from '.'
44

55
export interface BaseRequest {
6-
[x: string]: unknown
76
/**
87
* A unique value to identify this request. The response to this request uses
98
* the same id field. This way, even if responses arrive out of order, you

0 commit comments

Comments
 (0)