Merge pull request #1089 from filecoin-project/feat/state-call-cmd

implement state call command for easy method calling
This commit is contained in:
Łukasz Magiera
2020-01-21 17:16:54 +01:00
committed by GitHub
7 changed files with 236 additions and 8 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func (a *StateAPI) StatePledgeCollateral(ctx context.Context, ts *types.TipSet)
return types.BigFromBytes(ret.Return), nil
}
func (a *StateAPI) StateCall(ctx context.Context, msg *types.Message, ts *types.TipSet) (*types.MessageReceipt, error) {
func (a *StateAPI) StateCall(ctx context.Context, msg *types.Message, ts *types.TipSet) (*api.MethodCall, error) {
return a.StateManager.Call(ctx, msg, ts)
}