Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: remove generic const from TimeLag #587

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

luketchang
Copy link
Contributor

Motivation

TimeLag middleware parametrizes the lag amount (number of blocks to lag behind) as generic constant. This prevents devs from being able to instantiate the TimeLag's lag amount with a runtime variable.

Solution

Replaces the generic const with regular struct field.

@luketchang luketchang changed the title fix: remove const lag so it can be passed in as runtime variable fix: remove generic const from TimeLag Nov 16, 2021
Copy link
Collaborator

@prestwich prestwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeh, this is better. I was mostly using const generic here to get a feel for the system. Good to replace it with a struct field

@prestwich prestwich merged commit 8eac199 into gakonst:master Nov 17, 2021
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* Add bug report form

* Add labels for bugs

* Add feature request form

* Link to support Telegram

* Ask for command in bug form

* Ask for Solidity snippets in bug form

* Add PR template

* Badges nit

* Add contributing guidelines

* Refer to Foundry book

Also cleans up some other parts of the README

* Add forge version field to bug form

* Replace EVM abstraction with Foundry GHA

* Fix typos in contributing guidelines
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants