fix(multisig): The format of the amount is not correct in msigLockApproveCmd and msigLockCancelCmd

This commit is contained in:
Rennbon 2021-03-04 19:04:54 +08:00
parent 191a05da48
commit d80b0d9c2e
2 changed files with 6 additions and 2 deletions

View File

@ -1275,7 +1275,7 @@ var msigLockApproveCmd = &cli.Command{
params, actErr := actors.SerializeParams(&msig2.LockBalanceParams{
StartEpoch: abi.ChainEpoch(start),
UnlockDuration: abi.ChainEpoch(duration),
Amount: abi.NewTokenAmount(amount.Int64()),
Amount: big.Int(amount),
})
if actErr != nil {
@ -1367,7 +1367,7 @@ var msigLockCancelCmd = &cli.Command{
params, actErr := actors.SerializeParams(&msig2.LockBalanceParams{
StartEpoch: abi.ChainEpoch(start),
UnlockDuration: abi.ChainEpoch(duration),
Amount: abi.NewTokenAmount(amount.Int64()),
Amount: big.Int(amount),
})
if actErr != nil {

View File

@ -20,3 +20,7 @@ func TestMultisig(t *testing.T) {
clientNode, _ := clitest.StartOneNodeOneMiner(ctx, t, blocktime)
clitest.RunMultisigTest(t, Commands, clientNode)
}
// TestMultisig does a basic test to exercise the multisig CLI
// commands