diff --git a/.github/workflows/ci-fortuna.yml b/.github/workflows/ci-fortuna.yml index dd37da7c41..22f37cf6bc 100644 --- a/.github/workflows/ci-fortuna.yml +++ b/.github/workflows/ci-fortuna.yml @@ -5,6 +5,7 @@ on: paths: - .github/workflows/ci-fortuna.yml - apps/fortuna/** + - target_chains/ethereum/entropy_sdk/solidity/abis/** push: branches: [main] jobs: diff --git a/apps/fortuna/src/command/inspect.rs b/apps/fortuna/src/command/inspect.rs index 454c143186..de88c7738d 100644 --- a/apps/fortuna/src/command/inspect.rs +++ b/apps/fortuna/src/command/inspect.rs @@ -90,7 +90,7 @@ async fn inspect_chain( } async fn process_request(rpc_provider: Provider, request: Request) -> Result<()> { - if request.sequence_number != 0 && request.is_request_with_callback { + if request.sequence_number != 0 && request.callback_status != 0 { let block = rpc_provider .get_block(request.block_number) .await? diff --git a/target_chains/ethereum/entropy_sdk/solidity/abis/EntropyStatusConstants.json b/target_chains/ethereum/entropy_sdk/solidity/abis/EntropyStatusConstants.json new file mode 100644 index 0000000000..55e5c6a5e2 --- /dev/null +++ b/target_chains/ethereum/entropy_sdk/solidity/abis/EntropyStatusConstants.json @@ -0,0 +1,54 @@ +[ + { + "inputs": [], + "name": "CALLBACK_FAILED", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "CALLBACK_IN_PROGRESS", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "CALLBACK_NOT_NECESSARY", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "CALLBACK_NOT_STARTED", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + } +] diff --git a/target_chains/ethereum/entropy_sdk/solidity/package.json b/target_chains/ethereum/entropy_sdk/solidity/package.json index a01c391a90..c8fb9e3e84 100644 --- a/target_chains/ethereum/entropy_sdk/solidity/package.json +++ b/target_chains/ethereum/entropy_sdk/solidity/package.json @@ -14,7 +14,7 @@ "scripts": { "test:format": "prettier --check .", "fix:format": "prettier --write .", - "build": "generate-abis IEntropy IEntropyConsumer EntropyErrors EntropyEvents EntropyStructs PRNG", + "build": "generate-abis IEntropy IEntropyConsumer EntropyErrors EntropyEvents EntropyStructs EntropyStatusConstants PRNG", "test": "git diff --exit-code abis" }, "keywords": [