This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
error ErrorWithNoParams(); | |
error ErrorWithParams(int x, string errorMessage); | |
contract TestCustomError { | |
address payable owner = payable(msg.sender); | |
function CustomErrorWithParamsView(int _x) external pure { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.4; | |
error ErrorWithNoParams(); | |
error ErrorWithParams(int x, string errorMessage); | |
contract TestCustomError { | |
address payable owner = payable(msg.sender); | |
function CustomErrorNoParams() public { | |
revert ErrorWithNoParams(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3 = require('web3') | |
const Web3Legacy = require('web3legacy') | |
console.log('web3 version', (new Web3()).version) | |
console.log('web3 legacy version', (new Web3Legacy()).version) | |
// Do "export INFURA_PROJECT_ID=YOURPROJECTID" on your terminal | |
const projectid = process.env.INFURA_PROJECT_ID | |
const endpoint = 'https://mainnet.infura.io/v3/' + projectid | |
const provider = new Web3.providers.HttpProvider(endpoint) | |
const legacyProvider = new Web3Legacy.providers.HttpProvider(endpoint) | |
const web3 = new Web3(provider) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const namehash = require('eth-ens-namehash').hash | |
document.querySelector('input').value = 'matoken.eth' | |
window.namehash = namehash | |
var sayHello = function(){ | |
var name = document.querySelector('input').value | |
console.log(namehash(name)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makoto@Makotos-MacBook-Air: [~/src/tmp/univesal - (master)] $ more package.json | |
{ | |
"name": "univesal", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start:dev": "universal-login start:dev" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makoto@Makotos-MacBook-Air: [~/src/tmp/univesal - (master)] $ more package.json | |
{ | |
"name": "univesal", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start:dev": "universal-login start:dev" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makoto@Makotos-MacBook-Air: [~/work/blockparty - (coverage)] $ myth -x contracts/Conference.sol | |
==== Integer Overflow ==== | |
Type: Warning | |
Contract: Unknown | |
Function name: _function_0x05f203d9 | |
PC address: 543 | |
A possible integer overflow exists in the function `_function_0x05f203d9`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makoto@Makotos-MacBook-Air: [~/work/ens/dnsprove-js - (dnsprove)] $ ls node_modules/@ensdomains/dnssec-oracle/contracts/RSASHA1Algorithm.sol | |
node_modules/@ensdomains/dnssec-oracle/contracts/RSASHA1Algorithm.sol | |
makoto@Makotos-MacBook-Air: [~/work/ens/dnsprove-js - (dnsprove)] $ ls node_modules/dnssec-oracle/contracts/RSASHA1Algorithm.sol | |
node_modules/dnssec-oracle/contracts/RSASHA1Algorithm.sol | |
makoto@Makotos-MacBook-Air: [~/work/ens/dnsprove-js - (dnsprove)] $ node inspect node_modules/.bin/truffle migrate | |
< Debugger listening on ws://127.0.0.1:9229/12a647df-fb0d-45da-a906-0db3172da72b | |
< For help see https://nodejs.org/en/docs/inspector | |
< Debugger attached. | |
debug> c | |
Break on start in node_modules/truffle/build/cli.bundled.js:1 |
NewerOlder