File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,12 @@ func (c *Client) SetLoggingEnabled(enable bool) error {
108108// Reset resets the node state to the original or a new forked state.
109109//
110110// Equivalent to the `anvil_reset` RPC call.
111- func (c * Client ) Reset (forkURL string ) error {
111+ func (c * Client ) Reset (forkURL string , block * big. Int ) error {
112112 if forkURL == "" {
113113 return c .cli .Call (nil , "anvil_reset" )
114114 }
115115
116- // @TODO block number
117-
118- config := map [string ]interface {}{"forking" : map [string ]string {"jsonRpcUrl" : forkURL }}
116+ config := map [string ]interface {}{"forking" : map [string ]string {"jsonRpcUrl" : forkURL , "blockNumber" : block .String ()}}
119117 return c .cli .Call (nil , "anvil_reset" , config )
120118}
121119
You can’t perform that action at this time.
0 commit comments