fix(multisig): The format of the amount is not correct in msigLockApproveCmd and msigLockCancelCmd
This commit is contained in:
parent
191a05da48
commit
d80b0d9c2e
@ -1275,7 +1275,7 @@ var msigLockApproveCmd = &cli.Command{
|
|||||||
params, actErr := actors.SerializeParams(&msig2.LockBalanceParams{
|
params, actErr := actors.SerializeParams(&msig2.LockBalanceParams{
|
||||||
StartEpoch: abi.ChainEpoch(start),
|
StartEpoch: abi.ChainEpoch(start),
|
||||||
UnlockDuration: abi.ChainEpoch(duration),
|
UnlockDuration: abi.ChainEpoch(duration),
|
||||||
Amount: abi.NewTokenAmount(amount.Int64()),
|
Amount: big.Int(amount),
|
||||||
})
|
})
|
||||||
|
|
||||||
if actErr != nil {
|
if actErr != nil {
|
||||||
@ -1367,7 +1367,7 @@ var msigLockCancelCmd = &cli.Command{
|
|||||||
params, actErr := actors.SerializeParams(&msig2.LockBalanceParams{
|
params, actErr := actors.SerializeParams(&msig2.LockBalanceParams{
|
||||||
StartEpoch: abi.ChainEpoch(start),
|
StartEpoch: abi.ChainEpoch(start),
|
||||||
UnlockDuration: abi.ChainEpoch(duration),
|
UnlockDuration: abi.ChainEpoch(duration),
|
||||||
Amount: abi.NewTokenAmount(amount.Int64()),
|
Amount: big.Int(amount),
|
||||||
})
|
})
|
||||||
|
|
||||||
if actErr != nil {
|
if actErr != nil {
|
||||||
|
@ -20,3 +20,7 @@ func TestMultisig(t *testing.T) {
|
|||||||
clientNode, _ := clitest.StartOneNodeOneMiner(ctx, t, blocktime)
|
clientNode, _ := clitest.StartOneNodeOneMiner(ctx, t, blocktime)
|
||||||
clitest.RunMultisigTest(t, Commands, clientNode)
|
clitest.RunMultisigTest(t, Commands, clientNode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestMultisig does a basic test to exercise the multisig CLI
|
||||||
|
// commands
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user