Skip to content

Instantly share code, notes, and snippets.

View Godtide's full-sized avatar
🎯
Focusing

Godtide

🎯
Focusing
View GitHub Profile
pragma solidity ^0.5.0;
contract Base {
uint public num;
address public sender;
function setNum(uint _num) public {
num = _num;
sender = msg.sender;
}
@Godtide
Godtide / BaseCaller.sol
Created November 6, 2019 15:15 — forked from critesjosh/BaseCaller.sol
Inter-contract execution in Solidity
pragma solidity ^0.5.0;
contract Base {
uint x;
constructor() public {
x = 10;
}
/*
* NB: since truffle-hdwallet-provider 0.0.5 you must wrap HDWallet providers in a
* function when declaring them. Failure to do so will cause commands to hang. ex:
* ```
* mainnet: {
* provider: function() {
* return new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/<infura-key>')
* },
* network_id: '1',
* gas: 4500000,
@Godtide
Godtide / config
Created August 31, 2019 10:59 — forked from spreadzp/config
# Waves node settins
waves {
max-cache-size = 10
# Blockchain settings
blockchain {
type = CUSTOM
custom {
address-scheme-character = "D"
functionality {
@Godtide
Godtide / git_and_github_instructions.md
Created August 29, 2019 12:27 — forked from mindplace/git_and_github_instructions.md
Pushing your first project to github

Make sure git is tracking your project.

  1. Using your terminal/command line, get inside the folder where your project files are kept: cd /path/to/my/codebase.

You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.

Do you need a refresher on using your command line/terminal? I've compiled my favorite resources here.

  1. Check if git is already initialized: git status