Skip to content

Commit 81be70e

Browse files
committed
add block, probably will want to change this later
1 parent d07cf1c commit 81be70e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

client.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)