This repository was archived by the owner on Oct 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 31
31
- name : Checkout bundler spec test
32
32
uses : actions/checkout@v3
33
33
with :
34
- repository : eth-infinitism/bundler-spec-tests
35
- ref : 94a0634ebd6e6da657e863c134d20bc46724ed0f
34
+ # TODO: Revert back to eth-infinitism/bundler-spec-tests once
35
+ # https://github.com/eth-infinitism/bundler-spec-tests/pull/23 merged.
36
+ repository : hazim-j/bundler-spec-tests
37
+ ref : expires-too-soon-case
36
38
path : ./bundler-spec-tests
37
39
submodules : true
38
40
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package checks
5
5
import (
6
6
"math/big"
7
7
"sync"
8
+ "time"
8
9
9
10
"github.com/dgraph-io/badger/v3"
10
11
"github.com/ethereum/go-ethereum/common"
@@ -92,6 +93,14 @@ func (s *Standalone) SimulateOp() modules.UserOpHandlerFunc {
92
93
nil ,
93
94
)
94
95
}
96
+ if sim .ReturnInfo .ValidUntil .Cmp (common .Big0 ) != 0 &&
97
+ time .Now ().Unix () >= sim .ReturnInfo .ValidUntil .Int64 ()- 30 {
98
+ return errors .NewRPCError (
99
+ errors .SHORT_DEADLINE ,
100
+ "expires too soon" ,
101
+ nil ,
102
+ )
103
+ }
95
104
return nil
96
105
})
97
106
g .Go (func () error {
You can’t perform that action at this time.
0 commit comments