pond: Fix state calls aftter refactor
This commit is contained in:
parent
450ce5df07
commit
53fcea4651
@ -39,7 +39,7 @@ class Address extends React.Component {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
balance = await this.props.client.call('Filecoin.WalletBalance', [this.props.addr])
|
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)
|
actorInfo = await this.actorInfo(actor)
|
||||||
if(this.props.miner) {
|
if(this.props.miner) {
|
||||||
@ -71,7 +71,7 @@ class Address extends React.Component {
|
|||||||
let info = <span>({mh.digest.toString()}{method})</span>
|
let info = <span>({mh.digest.toString()}{method})</span>
|
||||||
switch(mh.digest.toString()) {
|
switch(mh.digest.toString()) {
|
||||||
case 'paych':
|
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 = <span>({mh.digest.toString()}{method} to <Address nobalance={true} client={this.props.client} addr={actstate.State.To} mountWindow={this.props.mountWindow}/>)</span>
|
info = <span>({mh.digest.toString()}{method} to <Address nobalance={true} client={this.props.client} addr={actstate.State.To} mountWindow={this.props.mountWindow}/>)</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ class State extends React.Component {
|
|||||||
|
|
||||||
async componentDidMount() {
|
async componentDidMount() {
|
||||||
const tipset = await this.props.client.call("Filecoin.ChainHead", []) // TODO: from props
|
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)
|
this.setState(actstate)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user