This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
)
|
||||
|
||||
type Cliargs struct {
|
||||
value *big.Int
|
||||
}
|
||||
|
||||
func (arg *Cliargs) Parse() (*big.Int, error) {
|
||||
@@ -19,10 +18,5 @@ func (arg *Cliargs) Parse() (*big.Int, error) {
|
||||
if !success {
|
||||
return nil, errors.New("argument is not an integer")
|
||||
}
|
||||
arg.value = num
|
||||
return num, nil
|
||||
}
|
||||
|
||||
func (arg *Cliargs) GetNumber() *big.Int {
|
||||
return arg.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user