From 53fcea4651975bbe976566fbdf79f8a050d47053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 10 Sep 2019 12:25:46 +0200 Subject: [PATCH] pond: Fix state calls aftter refactor --- lotuspond/front/src/Address.js | 4 ++-- lotuspond/front/src/State.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lotuspond/front/src/Address.js b/lotuspond/front/src/Address.js index 9b7bbd475..d92cf35d2 100644 --- a/lotuspond/front/src/Address.js +++ b/lotuspond/front/src/Address.js @@ -39,7 +39,7 @@ class Address extends React.Component { try { balance = await this.props.client.call('Filecoin.WalletBalance', [this.props.addr]) - actor = await this.props.client.call('Filecoin.ChainGetActor', [this.props.addr, this.props.ts || null]) + actor = await this.props.client.call('Filecoin.StateGetActor', [this.props.addr, this.props.ts || null]) actorInfo = await this.actorInfo(actor) if(this.props.miner) { @@ -71,7 +71,7 @@ class Address extends React.Component { let info = ({mh.digest.toString()}{method}) switch(mh.digest.toString()) { case 'paych': - const actstate = await this.props.client.call('Filecoin.ChainReadState', [actor, this.props.ts || null]) + const actstate = await this.props.client.call('Filecoin.StateReadState', [actor, this.props.ts || null]) info = ({mh.digest.toString()}{method} to
) } diff --git a/lotuspond/front/src/State.js b/lotuspond/front/src/State.js index 4fa5acefb..d8790ace9 100644 --- a/lotuspond/front/src/State.js +++ b/lotuspond/front/src/State.js @@ -10,7 +10,7 @@ class State extends React.Component { async componentDidMount() { const tipset = await this.props.client.call("Filecoin.ChainHead", []) // TODO: from props - const actstate = await this.props.client.call('Filecoin.ChainReadState', [this.props.actor, tipset]) + const actstate = await this.props.client.call('Filecoin.StateReadState', [this.props.actor, tipset]) this.setState(actstate) }