Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
591f3341
Commit
591f3341
authored
4 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[feat] gva:bca: add field current_ud in PrepareSimplePaymentResp
parent
bbff027a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
rust-libs/modules/gva/bca/src/exec_req_type/prepare_simple_payment.rs
+2
-0
2 additions, 0 deletions
...dules/gva/bca/src/exec_req_type/prepare_simple_payment.rs
rust-libs/modules/gva/bca/types/src/prepare_payment.rs
+1
-0
1 addition, 0 deletions
rust-libs/modules/gva/bca/types/src/prepare_payment.rs
with
3 additions
and
0 deletions
rust-libs/modules/gva/bca/src/exec_req_type/prepare_simple_payment.rs
+
2
−
0
View file @
591f3341
...
@@ -72,6 +72,7 @@ pub(super) async fn exec_req_prepare_simple_payment(
...
@@ -72,6 +72,7 @@ pub(super) async fn exec_req_prepare_simple_payment(
PrepareSimplePaymentResp
{
PrepareSimplePaymentResp
{
current_block_number
:
block_ref_number
,
current_block_number
:
block_ref_number
,
current_block_hash
:
block_ref_hash
,
current_block_hash
:
block_ref_hash
,
current_ud
,
inputs
,
inputs
,
inputs_sum
,
inputs_sum
,
},
},
...
@@ -211,6 +212,7 @@ mod tests {
...
@@ -211,6 +212,7 @@ mod tests {
BcaRespTypeV0
::
PrepareSimplePayment
(
PrepareSimplePaymentResp
{
BcaRespTypeV0
::
PrepareSimplePayment
(
PrepareSimplePaymentResp
{
current_block_number
:
0
,
current_block_number
:
0
,
current_block_hash
:
Hash
::
default
(),
current_block_hash
:
Hash
::
default
(),
current_ud
:
SourceAmount
::
ZERO
,
inputs
:
vec!
[
input
],
inputs
:
vec!
[
input
],
inputs_sum
:
SourceAmount
::
with_base0
(
57
),
inputs_sum
:
SourceAmount
::
with_base0
(
57
),
})
})
...
...
This diff is collapsed.
Click to expand it.
rust-libs/modules/gva/bca/types/src/prepare_payment.rs
+
1
−
0
View file @
591f3341
...
@@ -26,6 +26,7 @@ pub struct PrepareSimplePayment {
...
@@ -26,6 +26,7 @@ pub struct PrepareSimplePayment {
pub
struct
PrepareSimplePaymentResp
{
pub
struct
PrepareSimplePaymentResp
{
pub
current_block_number
:
u32
,
pub
current_block_number
:
u32
,
pub
current_block_hash
:
Hash
,
pub
current_block_hash
:
Hash
,
pub
current_ud
:
SourceAmount
,
pub
inputs
:
Vec
<
TransactionInputV10
>
,
pub
inputs
:
Vec
<
TransactionInputV10
>
,
pub
inputs_sum
:
SourceAmount
,
pub
inputs_sum
:
SourceAmount
,
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment