implement state call command for easy method calling

This commit is contained in:
whyrusleeping
2020-01-17 18:27:29 -08:00
parent 3962d4204b
commit 0a45e97699
7 changed files with 224 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)
}