From d80b0d9c2eeb84fd69bd1b9ab6b92afeccb9f0aa Mon Sep 17 00:00:00 2001 From: Rennbon <343688972@qq.com> Date: Thu, 4 Mar 2021 19:04:54 +0800 Subject: [PATCH 1/3] fix(multisig): The format of the amount is not correct in msigLockApproveCmd and msigLockCancelCmd --- cli/multisig.go | 4 ++-- cli/multisig_test.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cli/multisig.go b/cli/multisig.go index c3a062ed49b..9046f2eb7a3 100644 --- a/cli/multisig.go +++ b/cli/multisig.go @@ -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 { diff --git a/cli/multisig_test.go b/cli/multisig_test.go index 82472cd627b..e3a816f6147 100644 --- a/cli/multisig_test.go +++ b/cli/multisig_test.go @@ -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 + From fb78d5095f2c17bc0658cd47591a500aed2bdda6 Mon Sep 17 00:00:00 2001 From: Rennbon <343688972@qq.com> Date: Thu, 4 Mar 2021 19:12:29 +0800 Subject: [PATCH 2/3] no message --- cli/multisig_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cli/multisig_test.go b/cli/multisig_test.go index e3a816f6147..e8448fdbf61 100644 --- a/cli/multisig_test.go +++ b/cli/multisig_test.go @@ -19,8 +19,4 @@ func TestMultisig(t *testing.T) { ctx := context.Background() clientNode, _ := clitest.StartOneNodeOneMiner(ctx, t, blocktime) clitest.RunMultisigTest(t, Commands, clientNode) -} - -// TestMultisig does a basic test to exercise the multisig CLI -// commands - +} \ No newline at end of file From 10076d5698e6d4877c5a7afd5b4ff17a4caad309 Mon Sep 17 00:00:00 2001 From: Rennbon <343688972@qq.com> Date: Thu, 4 Mar 2021 19:15:31 +0800 Subject: [PATCH 3/3] no message --- cli/multisig_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/multisig_test.go b/cli/multisig_test.go index e8448fdbf61..82472cd627b 100644 --- a/cli/multisig_test.go +++ b/cli/multisig_test.go @@ -19,4 +19,4 @@ func TestMultisig(t *testing.T) { ctx := context.Background() clientNode, _ := clitest.StartOneNodeOneMiner(ctx, t, blocktime) clitest.RunMultisigTest(t, Commands, clientNode) -} \ No newline at end of file +}