Skip to content

fix: fixed cumulativeGasUsed calculations in eth_getBlockReceipts and eth_getTransactionReceipt (#4921) #5880

fix: fixed cumulativeGasUsed calculations in eth_getBlockReceipts and eth_getTransactionReceipt (#4921)

fix: fixed cumulativeGasUsed calculations in eth_getBlockReceipts and eth_getTransactionReceipt (#4921) #5880

Workflow file for this run

name: Build Image Test
on:
pull_request:
branches: [main, release/**]
permissions:
contents: read
jobs:
build:
runs-on: hiero-smart-contracts-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Docker Qemu
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
with:
version: v0.22.0
driver-opts: network=host
buildkitd-config-inline: |
[registry."docker.io"]
mirrors = ["https://hub.mirror.docker.lat.ope.eng.hashgraph.io"]
- name: Build image
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
with:
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64
push: false
load: true
tags: relay:latest
- name: Start server
run: |
docker run \
-e CHAIN_ID='0x12a' \
-e HEDERA_NETWORK='{"127.0.0.1:50211":"0.0.3"}' \
-e MIRROR_NODE_URL='http://127.0.0.1:5551' \
-e OPERATOR_ID_MAIN='0.0.1002' \
-e OPERATOR_KEY_MAIN='302e020100300506032b65700422042077d69b53642d0000000000000000000000000000000000000000000000000000' \
-e READ_ONLY='true' \
-e REDIS_ENABLED='false' \
-d -p 7546:7546 --name relay relay:latest
- name: Test server
run: |
sleep 15 # Wait for the server to start
response=$(curl -s http://localhost:7546/health/liveness)
if [ "$response" = "OK" ]; then
echo "Server responded with 'OK'. Test passed!"
exit 0
else
echo "Server responded with '$response'. Test failed!"
exit 1
fi
- name: Stop server
if: always()
run: |
docker stop relay
docker rm relay