Closed troggy closed 4 years ago
We have getProof helper which is supposed to work with both LeapWeb3 and LeapProvider(aka LeapEthers) passed in via plasma argument.
getProof
plasma
Newest addition to getProof helper uses plasma for two things:
getBlock
plasma.eth.getBlock
.eth.
plasma.provider.getBlock
getPeriodByBlockHeight
plasma.getPeriodByBlockHeight
The problem is with using LeapProvider for getBlock. As you see, it needs to be called on .provider
.provider
not correct.. period data for LeapProvider is read as plasma.provider.getPeriodByBlockHeight so the problem is easy to solve just by passing .provider object as plasma
plasma.provider.getPeriodByBlockHeight
We have
getProof
helper which is supposed to work with both LeapWeb3 and LeapProvider(aka LeapEthers) passed in viaplasma
argument.Newest addition to
getProof
helper usesplasma
for two things:getBlock
JSON RPC:plasma.eth.getBlock
(adding.eth.
is handled in leap-core)plasma.provider.getBlock
getPeriodByBlockHeight
plasma.getPeriodByBlockHeight
plasma.getPeriodByBlockHeight
The problem is with using LeapProvider for
getBlock
. As you see, it needs to be called on.provider