[marketplace] clean up
This commit is contained in:
parent
1fbdb5d035
commit
66b5ee52f9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue