cic-internal-integration/apps/cic-eth/tests/util/nonce.py
2021-03-20 21:10:19 +01:00

13 lines
320 B
Python

# external imports
from chainlib.eth.nonce import OverrideNonceOracle
from chainlib.eth.constant import ZERO_ADDRESS
class StaticNonceOracle(OverrideNonceOracle):
def __init__(self, nonce):
super(StaticNonceOracle, self).__init__(ZERO_ADDRESS, nonce)
def next_nonce(self):
return self.nonce