Content pfp
Content
@
0 reply
0 recast
0 reaction

Nishant pfp
Nishant
@nizhunt
How to share smart contracts that are ready to deploy and fiddle with in RemixIDE? Sharable links to your smart contract in RemixIDE can be nifty, especially if you are writing a tutorial and want the readers to try something out in a smart contract very quickly.
1 reply
0 recast
0 reaction

Nishant pfp
Nishant
@nizhunt
Here's how to do it: 1. Encode your Smart Contract to base64. Here are a couple of easy ways to do it: 1. Online tool: https://www.base64encode.org/ 2. VS Code Extention: https://marketplace.visualstudio.com/items?itemName=adamhartford.vscode-base64
1 reply
0 recast
0 reaction

Nishant pfp
Nishant
@nizhunt
2. Copy the base64 string and append it to the remixIDE's URL like this: https://remix.ethereum.org/?#code=<BASE64_STRING_OF_YOUR_CONTRACT>
1 reply
0 recast
0 reaction

Nishant pfp
Nishant
@nizhunt
eg. https://remix.ethereum.org/?#code=Ly8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVApwcmFnbWEgc29saWRpdHkgMC44LjI0OwoKY29udHJhY3QgQyB7CiAgICAvLyBIZWxsbyBGcmVucwp9 This link will open a remix IDE with your smart contract in it, ready to play around with.
0 reply
0 recast
0 reaction