Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UtxoEntry from RPC and wasm class has different field name #332

Open
Cryptok777 opened this issue Nov 22, 2023 · 0 comments
Open

UtxoEntry from RPC and wasm class has different field name #332

Cryptok777 opened this issue Nov 22, 2023 · 0 comments

Comments

@Cryptok777
Copy link
Contributor

Cryptok777 commented Nov 22, 2023

Describe the bug
From the RPC call getUtxosByAddresses it's returning {utxoEntry: {...}}, but in WASM class UtxoEntry has the field entry instead of utxoEntry, code - would be good to keep it consistent and so that the interface can be reused

To Reproduce

// Calling RPC
const resp = await this.rpc.getUtxosByAddresses({ addresses: [address] })
resp.utxoEntry // This is valid and returned by RPC

// In kaspa_wasm.d.ts, the UtxoEntry class is 

export class UtxoEntry {
/**
** Return copy of self without private attributes.
*/
  toJSON(): Object;
/**
* Return stringified version of self.
*/
  toString(): string;
  free(): void;
/**
*/
  address?: Address;
/**
*/
  entry: TxUtxoEntry;
/**
*/
  outpoint: TransactionOutpoint;
}
`

Expected behavior
Would be ideal to keep these consistent so we can reuse the interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant