#How to Pass Vec of i128 values to the stellar deploy CLI

1 messages · Page 1 of 1 (latest)

simple merlin
#

My contract gets a vec of i128 in at deployment but I don't know how i should pasred on CLi command it always return me an error. Before adding the vec, the cli command was working fine. Here is my command of deployment :
stellar contract deploy
--wasm target/wasm32v1-none/release/al.wasm
--source-account alice
--network testnet
--alias al2
--
--owner $(stellar keys address alice)
--stablecoin CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA
--receiver $(stellar keys address alice)
--payer $(stellar keys address alice)
--price 1
--total-supply 4500
--roi-percentages '[40000000,26700000,26700000,26700000,26700000,26700000,26700000,26700000,26700000,26700000]'

The error :
❌ error: parsing argument roi_percentages: invalid type: integer 40000000, expected string or map

bronze nacelle
#

You might try --roi-percentages '["40000000","26700000",...]'

#

I remember seeing something similar before, but can't exactly recall how I got around it. But inputting the i128 as a string might've been the way to do it

simple merlin
#

Yes, it works thanks

bronze nacelle
#

Nice!!! Glad to hear it