Spaces:
Sleeping
Sleeping
Download polygon/scripts/deploy_with_web3.ts from VeuReu/compliance: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/spaces/VeuReu/compliance/resolve/main/polygon/scripts/deploy_with_web3.ts
- Command line
-
hf download hf://spaces/VeuReu/compliance/polygon/scripts/deploy_with_web3.ts
-
curl -L -o deploy_with_web3.ts https://huggingface.co/spaces/VeuReu/compliance/resolve/main/polygon/scripts/deploy_with_web3.ts
481 Bytes
| // This script can be used to deploy the "Storage" contract using Web3 library. | |
| // Please make sure to compile "./contracts/1_Storage.sol" file before running this script. | |
| // And use Right click -> "Run" from context menu of the file to run the script. Shortcut: Ctrl+Shift+S | |
| import { deploy } from './web3-lib' | |
| (async () => { | |
| try { | |
| const result = await deploy('Storage', []) | |
| console.log(`address: ${result.address}`) | |
| } catch (e) { | |
| console.log(e.message) | |
| } | |
| })() |