Change op order
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
f7a8d11f14
commit
0a37ca0344
@ -174,14 +174,18 @@ func (msa MultiSigActor) Propose(act *types.Actor, vmctx types.VMContext,
|
|||||||
txid := self.NextTxID
|
txid := self.NextTxID
|
||||||
self.NextTxID++
|
self.NextTxID++
|
||||||
|
|
||||||
tx := MTransaction{
|
{
|
||||||
TxID: txid,
|
tx := MTransaction{
|
||||||
To: params.To,
|
TxID: txid,
|
||||||
Value: params.Value,
|
To: params.To,
|
||||||
Method: params.Method,
|
Value: params.Value,
|
||||||
Params: params.Params,
|
Method: params.Method,
|
||||||
Approved: []address.Address{vmctx.Message().From},
|
Params: params.Params,
|
||||||
|
Approved: []address.Address{vmctx.Message().From},
|
||||||
|
}
|
||||||
|
self.Transactions = append(self.Transactions, tx)
|
||||||
}
|
}
|
||||||
|
tx := self.getTransaction(txid)
|
||||||
|
|
||||||
if self.Required == 1 {
|
if self.Required == 1 {
|
||||||
_, err := vmctx.Send(tx.To, tx.Method, tx.Value, tx.Params)
|
_, err := vmctx.Send(tx.To, tx.Method, tx.Value, tx.Params)
|
||||||
@ -192,8 +196,6 @@ func (msa MultiSigActor) Propose(act *types.Actor, vmctx types.VMContext,
|
|||||||
tx.Complete = true
|
tx.Complete = true
|
||||||
}
|
}
|
||||||
|
|
||||||
self.Transactions = append(self.Transactions, tx)
|
|
||||||
|
|
||||||
err = msa.save(vmctx, head, self)
|
err = msa.save(vmctx, head, self)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, aerrors.Wrap(err, "saving state")
|
return nil, aerrors.Wrap(err, "saving state")
|
||||||
|
Loading…
Reference in New Issue
Block a user