[marketplace] clean up

This commit is contained in:
Eric Mastro 2023-01-10 16:43:59 +11:00 committed by Mark Spanbroek
parent 1fbdb5d035
commit 66b5ee52f9
No known key found for this signature in database
GPG Key ID: FBE3E9548D427C00
1 changed files with 0 additions and 7 deletions

View File

@ -118,8 +118,6 @@ func solidityType*(_: type StorageRequest): string =
func solidityType*(_: type Slot): string =
solidityType(Slot.fieldTypes)
# func solidityType*[T: RequestId | SlotId | Nonce](_: type T): string =
# solidityType(array[32, byte])
func encode*(encoder: var AbiEncoder, por: StoragePoR) =
encoder.write(por.fieldValues)
@ -140,11 +138,6 @@ func encode*(encoder: var AbiEncoder, request: StorageRequest) =
func encode*(encoder: var AbiEncoder, slot: Slot) =
encoder.write(slot.fieldValues)
# func decode*[T: RequestId | SlotId | Nonce](decoder: var AbiDecoder,
# _: type T): ?!T =
# let nonce = ?decoder.read(type array[32, byte])
# success T(nonce)
func decode*(decoder: var AbiDecoder, T: type StoragePoR): ?!T =
let tupl = ?decoder.read(StoragePoR.fieldTypes)
success StoragePoR.fromTuple(tupl)