# While deploying code I get the error

**URL:** <https://community.starknet.io/t/while-deploying-code-i-get-the-error/1294>\
**Category:** Starknet Technical Development\
**Tags:** cairo\
**Created:** [May 19, 2022, 9:26pm UTC](https://community.starknet.io/t/while-deploying-code-i-get-the-error/1294 "2022-05-19T21:26:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bowlofchilli](https://dub1.discourse-cdn.com/flex005/user_avatar/community.starknet.io/bowlofchilli/32/73368_2.png) [@bowlofchilli](https://community.starknet.io/u/bowlofchilli)\
**Post date:** [May 19, 2022, 9:26pm UTC](https://community.starknet.io/t/while-deploying-code-i-get-the-error/1294/1 "2022-05-19T21:26:01Z")

</div>

I am using starknet.js and I try upload I get this a big cairo contract --\>normalize\_address() cannot be used with the current constants

---

<div class="post-metadata">

**Author:** ![FabijanC](https://dub1.discourse-cdn.com/flex005/user_avatar/community.starknet.io/fabijanc/32/39_2.png) [@FabijanC](https://community.starknet.io/u/FabijanC)\
**Post date:** [May 20, 2022, 7:24am UTC](https://community.starknet.io/t/while-deploying-code-i-get-the-error/1294/2 "2022-05-20T07:24:55Z")

</div>

I haven’t been able to figure out exactly what causes this error, but I got it when I was trying to deploy a contract whose .json artifact was minified (whitespaces removed). So, deploying the unminified version worked well for me.

Btw, what network are you deploying to? Starknet-devnet? Alpha-goerli?

---

<div class="post-metadata">

**Author:** ![drspacemn](https://dub1.discourse-cdn.com/flex005/user_avatar/community.starknet.io/drspacemn/32/139_2.png) [@drspacemn](https://community.starknet.io/u/drspacemn)\
**Post date:** [May 21, 2022, 2:17pm UTC](https://community.starknet.io/t/while-deploying-code-i-get-the-error/1294/3 "2022-05-21T14:17:33Z")

</div>

Can you post the contract and the error here as well?

---

<div class="post-metadata">

**Author:** ![bowlofchilli](https://dub1.discourse-cdn.com/flex005/user_avatar/community.starknet.io/bowlofchilli/32/73368_2.png) [@bowlofchilli](https://community.starknet.io/u/bowlofchilli)\
**Post date:** [May 24, 2022, 11:36pm UTC](https://community.starknet.io/t/while-deploying-code-i-get-the-error/1294/4 "2022-05-24T23:36:11Z")

</div>

Ok hopefully this helps someone. But its fixed now. If you do a direct import like below for some contracts and not all and use it deploy a contract, it will not work, especially if it has uin256 (I think\*, not sure)

import \* as ricksompiledcontract from “…/…/compiledcairo/RICKS.json”;

What I had to do was something like below

```
  ricks: fs.readFileSync(fullRicksPath).toString("ascii"),

```

and then  
const ricksresponse = await getStarknet().provider.deployContract({  
contract: json.parse(props.ricks),  
constructorCalldata: callDatahash  
});

where json.parse is from Starknet.js not the regular JSON.parse

Tom Brand also mentioned in Telegram it might be something related to decimal number formatting in contract as opposed to hex. Hope this helps
