You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploying the contract into the factory requires the nearcall tool installed before: $ near call -account ${MASTERACC} -contract factory.${MASTERACC} -args staking_farm_local.wasm
This will return an "Argument hash" that is required for later, and success/failure information of the deployment call.
Make the argument hash globally available: $ export CONTRACTHASH=HxT6MrNC7...
is not possible to run. So, I'm running it like this:
go run ~/go/src/github.com/aurora-is-near/near-api-go/cmd/nearcall/nearcall.go -account ${MASTERACC} -contract factory.${MASTERACC} -args staking_farm_local.wasm
and it is returning me this error, because well some storage deposit is required
(string) (len=14) "ExecutionError": (string) (len=120) "Smart contract panicked: panicked at 'Must at least deposit 3179240000000000000000000', staking-factory/src/lib.rs:393:5"
The problem is that the amount in the nearcall tool is hard-coded to 0. As you can see here:
Hi Aurora,
I'm trying to deploy the staking-farm contract by following the HowTo.md (here: https://github.com/referencedev/staking-farm/blob/master/HowTo.md).
This step:
$ near call -account ${MASTERACC} -contract factory.${MASTERACC} -args staking_farm_local.wasm
This will return an "Argument hash" that is required for later, and success/failure information of the deployment call.
Make the argument hash globally available:
$ export CONTRACTHASH=HxT6MrNC7...
is not possible to run. So, I'm running it like this:
go run ~/go/src/github.com/aurora-is-near/near-api-go/cmd/nearcall/nearcall.go -account ${MASTERACC} -contract factory.${MASTERACC} -args staking_farm_local.wasm
and it is returning me this error, because well some storage deposit is required
(string) (len=14) "ExecutionError": (string) (len=120) "Smart contract panicked: panicked at 'Must at least deposit 3179240000000000000000000', staking-factory/src/lib.rs:393:5"
The problem is that the amount in the nearcall tool is hard-coded to 0. As you can see here:
near-api-go/cmd/nearcall/nearcall.go
Line 44 in 30882c6
I tried to change that line to:
But it's failing because the amount Overflows Int64.
Please help!
The text was updated successfully, but these errors were encountered: