Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Dec 15, 2023
1 parent 6ebfaf2 commit 13e7006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_certificates_broadcasted.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ source $LOCAL_ERC20_HOME/tests/utils.sh


function get_last_sequncer_generated_certificate () {
# $1 - node name
local last_certificate=`docker compose logs $1 | grep -e 'Submitting new certificate to the TCE network: ' | awk -F': ' '{print $3}' | tail -1` > /dev/null
echo $last_certificate
}

function check_certificate_delivered () {
# $1 - node name
docker compose logs $1 | grep -e "Certificate delivered $2" > /dev/null
local certificate_delivered=$?
echo $certificate_delivered
Expand Down
2 changes: 2 additions & 0 deletions tests/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ is_network_running() {


function graphql_get_tce_certificate () {
# $1 - certificate id
# $2 - tce graphql endpoint
local query='{"query": "{certificate(certificateId: {value: \"'$1'\"}) \n { \n id \n stateRoot \n}}"}'
TCE_CERT=$(curl -X POST -H "Content-Type: application/json" -d "$query" $2 | jq -r '.data.certificate.id')
echo $TCE_CERT
Expand Down

0 comments on commit 13e7006

Please sign in to comment.