mirror of
https://github.com/logos-storage/logos-storage-network-crawler.git
synced 2026-01-06 23:43:10 +00:00
can successfully fetch zkeyhash from chain
This commit is contained in:
parent
ed100ef27e
commit
b3e147ace1
@ -18,7 +18,7 @@ import ./components/todolist
|
||||
proc createComponents*(state: State): Future[?!seq[Component]] {.async.} =
|
||||
var components: seq[Component] = newSeq[Component]()
|
||||
|
||||
aaa()
|
||||
await aaa(state.config)
|
||||
|
||||
let clock = createClock()
|
||||
|
||||
|
||||
@ -1,4 +1,30 @@
|
||||
import ./marketplace/market
|
||||
import pkg/ethers
|
||||
import pkg/questionable
|
||||
|
||||
proc aaa*() =
|
||||
import ./marketplace/market
|
||||
import ./marketplace/marketplace
|
||||
import ../config
|
||||
|
||||
proc aaa*(config: Config) {.async.} =
|
||||
echo "aaa"
|
||||
|
||||
let provider = JsonRpcProvider.new(config.ethProvider)
|
||||
without marketplaceAddress =? Address.init(config.marketplaceAddress):
|
||||
raiseAssert("A!")
|
||||
|
||||
let marketplace = Marketplace.new(marketplaceAddress, provider)
|
||||
let market = OnChainMarket.new(marketplace)
|
||||
|
||||
echo "bbb"
|
||||
echo "running with marketplace address: " & $marketplaceAddress
|
||||
|
||||
try:
|
||||
without zkeyhash =? await market.getZkeyHash():
|
||||
echo "couldn't get zkeyhash"
|
||||
return
|
||||
echo "zkeyhash=" & $zkeyhash
|
||||
|
||||
except CatchableError as err:
|
||||
echo "catchable error! " & err.msg
|
||||
|
||||
echo "ccc"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user