Skip to content

Commit 6e85db9

Browse files
committed
cleanup
1 parent 41284e4 commit 6e85db9

File tree

3 files changed

+4
-100
lines changed

3 files changed

+4
-100
lines changed

target_chains/ethereum/contracts/contracts/entropy/Entropy.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,8 @@ abstract contract Entropy is IEntropy, EntropyState {
526526

527527
address callAddress = req.requester;
528528

529+
// If the request has an explicit gas limit, then run the new callback failure state flow.
530+
//
529531
// Requests that haven't been invoked yet will be invoked safely (catching reverts), and
530532
// any reverts will be reported as an event. Any failing requests move to a failure state
531533
// at which point they can be recovered. The recovery flow invokes the callback directly
@@ -661,10 +663,10 @@ abstract contract Entropy is IEntropy, EntropyState {
661663
providerAddr
662664
];
663665

664-
// Providers charge a minimum of their configured feeInWei for every request.
666+
// Providers charge a minimum of their configured feeInWei for every request.
665667
// Requests using more than the defaultGasLimit get a proportionally scaled fee.
666668
// This approach may be somewhat simplistic, but it allows us to continue using the
667-
// existing feeInWei parameter for the callback failure flow instead of defining new
669+
// existing feeInWei parameter for the callback failure flow instead of defining new
668670
// configuration values.
669671
uint32 roundedGasLimit = uint32(roundGas(gasLimit)) * 10000;
670672
if (

target_chains/ethereum/entropy_sdk/solidity/abis/EntropyEvents.json

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -48,55 +48,6 @@
4848
"name": "CallbackFailed",
4949
"type": "event"
5050
},
51-
{
52-
"anonymous": false,
53-
"inputs": [
54-
{
55-
"indexed": true,
56-
"internalType": "address",
57-
"name": "provider",
58-
"type": "address"
59-
},
60-
{
61-
"indexed": true,
62-
"internalType": "address",
63-
"name": "requestor",
64-
"type": "address"
65-
},
66-
{
67-
"indexed": true,
68-
"internalType": "uint64",
69-
"name": "sequenceNumber",
70-
"type": "uint64"
71-
},
72-
{
73-
"indexed": false,
74-
"internalType": "bytes32",
75-
"name": "userRandomNumber",
76-
"type": "bytes32"
77-
},
78-
{
79-
"indexed": false,
80-
"internalType": "bytes32",
81-
"name": "providerRevelation",
82-
"type": "bytes32"
83-
},
84-
{
85-
"indexed": false,
86-
"internalType": "bytes32",
87-
"name": "randomNumber",
88-
"type": "bytes32"
89-
},
90-
{
91-
"indexed": false,
92-
"internalType": "bytes",
93-
"name": "errorCode",
94-
"type": "bytes"
95-
}
96-
],
97-
"name": "CallbackOutOfGas",
98-
"type": "event"
99-
},
10051
{
10152
"anonymous": false,
10253
"inputs": [

target_chains/ethereum/entropy_sdk/solidity/abis/IEntropy.json

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -48,55 +48,6 @@
4848
"name": "CallbackFailed",
4949
"type": "event"
5050
},
51-
{
52-
"anonymous": false,
53-
"inputs": [
54-
{
55-
"indexed": true,
56-
"internalType": "address",
57-
"name": "provider",
58-
"type": "address"
59-
},
60-
{
61-
"indexed": true,
62-
"internalType": "address",
63-
"name": "requestor",
64-
"type": "address"
65-
},
66-
{
67-
"indexed": true,
68-
"internalType": "uint64",
69-
"name": "sequenceNumber",
70-
"type": "uint64"
71-
},
72-
{
73-
"indexed": false,
74-
"internalType": "bytes32",
75-
"name": "userRandomNumber",
76-
"type": "bytes32"
77-
},
78-
{
79-
"indexed": false,
80-
"internalType": "bytes32",
81-
"name": "providerRevelation",
82-
"type": "bytes32"
83-
},
84-
{
85-
"indexed": false,
86-
"internalType": "bytes32",
87-
"name": "randomNumber",
88-
"type": "bytes32"
89-
},
90-
{
91-
"indexed": false,
92-
"internalType": "bytes",
93-
"name": "errorCode",
94-
"type": "bytes"
95-
}
96-
],
97-
"name": "CallbackOutOfGas",
98-
"type": "event"
99-
},
10051
{
10152
"anonymous": false,
10253
"inputs": [

0 commit comments

Comments
 (0)