This file contains hidden or 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
| byte code: | |
| args: nil | |
| 0 constant global-set-key | |
| 1 constant "" | |
| 2 constant backward-delete-char-untabify | |
| 3 call 2 | |
| 4 discard | |
| 5 constant local-set-key | |
| 6 constant "m" | |
| 7 constant vm-mail |
This file contains hidden or 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
| { | |
| "type": "VariableDeclaration", | |
| "typeName": { | |
| "type": "ArrayTypeName", | |
| "baseTypeName": { | |
| "type": "ElementaryTypeName", | |
| "name": "bytes32", | |
| "loc": { | |
| "start": { | |
| "line": 4, |
This file contains hidden or 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
| // Rules involving the solc FunctionDefinition AST node | |
| "use strict"; | |
| import { Issue, Severity } from '../issue'; | |
| function defaultVisibilityFunctionViolation(node: any, issues: Issue[]): boolean { | |
| if (node.attributes.visibility === "default") { | |
| const mess = `Function ${node.attributes.name} visibility is not set and defaults to "public".`; | |
| const issue = new Issue(node.src, "SWC-100", Severity.Warning, mess); | |
| issues.push(issue); |
This file contains hidden or 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
| // Return true if node is the tx.origin which refers to an | |
| // address. | |
| function txOriginViolation(node: any, issues: Issue[]): boolean { | |
| const attrib = node.attributes; | |
| if (attrib.type !== "address") { | |
| return false; | |
| } | |
| if (attrib.member_name !== "origin") { | |
| return false | |
| } |
This file contains hidden or 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
| { | |
| "contracts": { | |
| "/home/rocky/truffle/mythjs-should-detect/bernhard_medium_post/contracts/ConvertLib.sol": { | |
| "ConvertLib": { | |
| "abi": [ | |
| { | |
| "constant": true, | |
| "inputs": [ | |
| { | |
| "name": "amount", |
This file contains hidden or 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
| #!/usr/bin/env node | |
| const srcmap = require('../lib/srcmap'); | |
| const sourceMaps = [ | |
| // ConvertLib | |
| ["ConvertLib sourcemap", | |
| "34:155:0:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24"], | |
| ["ConvertLib deployed", | |
| "34:155:0:-;;;;;;;;;;;;;;;;;;;;;;;;;55:132;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;55:132:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;126:20;169:14;160:6;:23;153:30;;55:132;;;;:::o"], |
OlderNewer