cic-internal-integration/apps/cic-eth/tests/util/nonce.py

13 lines
320 B
Python
Raw Normal View History

2021-03-20 21:10:19 +01:00
# 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