Using Typescript to create a proposal with Defender SDK node module. When implementing client.proposal.get(proposalId)
to access transaction result there appears to be no transaction
property on the ProposalResponseWithUrl
type result.
Environment
@openzeppelin/defender-sdk-proposal-client
Details
According to the documentation for the API/SDK the response for the proposal get
should have a transaction
property at the top level.
However, there is an error during compilation or when using an IDE with Intellisense:
Property 'transaction' does not exist on type 'ProposalResponseWithUrl'.ts(2339)
Following the type definition links into the OZ Defender node module there doesn't appear to be a transaction
property
Code to reproduce
const result = await this.client.proposal.get(proposalId).transaction;