Normalize hex in queueentry

This commit is contained in:
lash
2022-03-11 20:16:42 +00:00
parent 3880249683
commit 790c9ddf13
3 changed files with 39 additions and 10 deletions

View File

@@ -4,7 +4,10 @@ import logging
import unittest
# external imports
from hexathon import add_0x
from hexathon import (
add_0x,
strip_0x,
)
from shep.error import StateTransitionInvalid
# local imports
@@ -32,7 +35,7 @@ class TestShep(TestShepBase):
tx_retrieved = QueueEntry(self.store, tx_hash)
tx_retrieved.load()
self.assertEqual(tx_retrieved.signed_tx, signed_tx)
self.assertEqual(tx_retrieved.signed_tx, strip_0x(signed_tx))
def test_shep_valid(self):