Skip to content

Commit ea118ba

Browse files
authored
fix(fortuna): Fix fortuna CI (#2562)
* generate struct abi * ci
1 parent c7b1f4a commit ea118ba

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed

.github/workflows/ci-fortuna.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
paths:
66
- .github/workflows/ci-fortuna.yml
77
- apps/fortuna/**
8+
- target_chains/ethereum/entropy_sdk/solidity/abis/**
89
push:
910
branches: [main]
1011
jobs:

apps/fortuna/src/command/inspect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async fn inspect_chain(
9090
}
9191

9292
async fn process_request(rpc_provider: Provider<Http>, request: Request) -> Result<()> {
93-
if request.sequence_number != 0 && request.is_request_with_callback {
93+
if request.sequence_number != 0 && request.callback_status != 0 {
9494
let block = rpc_provider
9595
.get_block(request.block_number)
9696
.await?
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[
2+
{
3+
"inputs": [],
4+
"name": "CALLBACK_FAILED",
5+
"outputs": [
6+
{
7+
"internalType": "uint8",
8+
"name": "",
9+
"type": "uint8"
10+
}
11+
],
12+
"stateMutability": "view",
13+
"type": "function"
14+
},
15+
{
16+
"inputs": [],
17+
"name": "CALLBACK_IN_PROGRESS",
18+
"outputs": [
19+
{
20+
"internalType": "uint8",
21+
"name": "",
22+
"type": "uint8"
23+
}
24+
],
25+
"stateMutability": "view",
26+
"type": "function"
27+
},
28+
{
29+
"inputs": [],
30+
"name": "CALLBACK_NOT_NECESSARY",
31+
"outputs": [
32+
{
33+
"internalType": "uint8",
34+
"name": "",
35+
"type": "uint8"
36+
}
37+
],
38+
"stateMutability": "view",
39+
"type": "function"
40+
},
41+
{
42+
"inputs": [],
43+
"name": "CALLBACK_NOT_STARTED",
44+
"outputs": [
45+
{
46+
"internalType": "uint8",
47+
"name": "",
48+
"type": "uint8"
49+
}
50+
],
51+
"stateMutability": "view",
52+
"type": "function"
53+
}
54+
]

target_chains/ethereum/entropy_sdk/solidity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"test:format": "prettier --check .",
1616
"fix:format": "prettier --write .",
17-
"build": "generate-abis IEntropy IEntropyConsumer EntropyErrors EntropyEvents EntropyStructs PRNG",
17+
"build": "generate-abis IEntropy IEntropyConsumer EntropyErrors EntropyEvents EntropyStructs EntropyStatusConstants PRNG",
1818
"test": "git diff --exit-code abis"
1919
},
2020
"keywords": [

0 commit comments

Comments
 (0)