-
Notifications
You must be signed in to change notification settings - Fork 67
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
Provider - fix debit notes property #1102
Provider - fix debit notes property #1102
Conversation
if let Ok(deadline_prop) = offer.pointer_mut(DEBIT_NOTE_ACCEPT_TIMEOUT_PROP) { | ||
*deadline_prop = | ||
serde_json::Value::Number(req_deadline.num_seconds().into()); | ||
} else { | ||
bail!("Unable to set property {}", DEBIT_NOTE_ACCEPT_TIMEOUT_PROP); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We know that this property exists, because we checked it above (our_deadline
)
impl From<&Proposal> for ProposalView { | ||
fn from(p: &Proposal) -> Self { | ||
ProposalView { | ||
json: expand(p.properties), | ||
agreement_id: p.proposal_id, | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be in AgreementUtils
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted not to touch it this time
15cba08
to
4151ace
Compare
resolves: #1100
Property name in Agreement differs from property name in Offer since it must be prefixed with "/offer/properties".