Closed mrosendin closed 2 years ago
SignerEntry
is a weird object because it has a single-field named SignerEntry
, which then has the Account
and SignerWeight
data. So, your code should actually look like:
SignerEntries: [
{
SignerEntry: {
Account: address,
SignerWeight: 1
}
}
Here's the type definition for it: https://github.com/XRPLF/xrpl.js/blob/3e7a722a4cbdb53d1e219fa62fc778147a098390/packages/xrpl/src/models/common/index.ts#L62-L67
Thanks @JST5000! I'd be curious to know if the SignerEntry
key is intentional. In any case, that solves it.
Thanks @JST5000! I'd be curious to know if the
SignerEntry
key is intentional. In any case, that solves it.
Yeah, unfortunately it's awkward either way (If you try to pull it out, then you end up with SignerEntries
becoming Array<{ SignerEntry: SignerEntry }>
which isn't great either.)
I'm getting this TypeScript error on v2.0.2.
SignerEntry interface
Reproducible code: