Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
concordium
smart-contract-interactions
Commits
b7a71100
Commit
b7a71100
authored
Apr 22, 2019
by
Jakob Botsch Nielsen
Browse files
Get deployed congress address from transaction
parent
56054f6d
Pipeline
#12092
passed with stage
in 5 minutes and 27 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/LocalBlockchainTests.v
View file @
b7a71100
...
...
@@ -11,9 +11,6 @@ Import ListNotations.
Section
LocalBlockchainTests
.
(
*
Addresses
*
)
Definition
congress_1
:
Address
:=
BoundedN
.
of_Z_const
AddrSize
(
Z
.
of_N
ContractAddrBase
).
Definition
baker
:
Address
:=
BoundedN
.
of_Z_const
AddrSize
10.
...
...
@@ -80,6 +77,12 @@ Section LocalBlockchainTests.
[
build_act
person_1
deploy_congress
]
4
0
).
Definition
congress_1
:
Address
:=
match
outgoing_txs
chain4
person_1
with
|
tx
::
_
=>
tx_to
tx
|
_
=>
person_1
end
.
Compute
(
contract_deployment
chain4
congress_1
).
Compute
(
account_balance
chain4
person_1
).
Compute
(
account_balance
chain4
baker
).
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment