near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 92 forks source link

--force option does not override question to overwrite contract #1104

Closed wackazong closed 4 months ago

wackazong commented 4 months ago

Describe the bug near deploy asks a security question whether to overwrite an existing contract also if --force true is used.

To Reproduce near deploy account new.wasm --initFunction init --initArgs '{"some": "args"}' --force true

Expected behavior The new wasm should be directly deployed.

Additional context Workaround is to do this echo y | near deploy account new.wasm --initFunction init --initArgs '{"some": "args"}'

gagdiez commented 4 months ago

should be fixed in latest release (4.0.8) please ping me back if not.