Skip to content

Commit

Permalink
fix: feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nhussein11 committed Jan 9, 2025
1 parent 9f22eb0 commit f2a5b6d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions develop/toolkit/api-libraries/smart-contracts/ethers-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ This library will compile your Solidity code for deployment on Asset Hub.

Here's a sample Solidity contract (`Storage.sol`) to be compiled and deployed to the Asset Hub. This contract's functionality stores a number and permits users to update it with a new value.

??? code "Storage.sol"

```solidity
--8<-- 'code/develop/smart-contracts/evm-toolkit/ethers-js/Storage.sol'
```
```solidity
--8<-- 'code/develop/smart-contracts/evm-toolkit/ethers-js/Storage.sol'
```

To compile this contract, use the following script:

Expand All @@ -86,7 +84,7 @@ After executing the script, the Solidity contract will be compiled into the requ

## Contracts Deployment

To deploy your compiled contract to Asset Hub, you'll need a wallet with a private key to sign the deployment transaction. You can use [subkey](/polkadot-protocol/basics/accounts/#using-subkey){target=\_blank} to manage your address.
To deploy your compiled contract to Asset Hub, you'll need a wallet with a private key to sign the deployment transaction.

The deployment script can be broken down into key components:

Expand Down

0 comments on commit f2a5b6d

Please sign in to comment.