less than 1 minute read

var abi = ~~~~ 스마트계약 인터페이스

var msgs = []; for(var i0=0;i0<abi.length;i0++){ var v = abi[i0]; var name = v.name; var input_names = [] for(var i1=0;v.inputs && i1<v.inputs.length;i1++){ input_names.push(v.inputs[i1].name+” “+v.inputs[i1].type); } var inputs = input_names.join(“,”); msgs.push(name+”(“+inputs+”)”); } msgs.join(“\n”);


🔗original-link

Updated: