Skip to content

Commit

Permalink
allow calldata button w/o endpoint/sender
Browse files Browse the repository at this point in the history
  • Loading branch information
adraffy committed Jul 16, 2024
1 parent 9bad7db commit a1f4c3e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/postman.html
Original file line number Diff line number Diff line change
Expand Up @@ -981,10 +981,6 @@ <h1><a target="_blank" href="https://eips.ethereum.org/EIPS/eip-3668">CCIP-Read<
calldata_div.classList.toggle('hide', func !== FUNC_CALLDATA);

let ok = true;
parse_endpoint();
if (!endpoint) ok = false;
parse_sender();
if (!sender) ok = false;

let json = {
endpoint: endpoint_field.value,
Expand Down Expand Up @@ -1018,8 +1014,12 @@ <h1><a target="_blank" href="https://eips.ethereum.org/EIPS/eip-3668">CCIP-Read<
json.fields = fields;
}

start_btn.disabled = !ok;
data_btn.disabled = !ok;
parse_endpoint();
if (!endpoint) ok = false;
parse_sender();
if (!sender) ok = false;
start_btn.disabled = !ok;

localStorage[STORAGE_KEY] = JSON.stringify(json);

Expand Down Expand Up @@ -1169,6 +1169,7 @@ <h1><a target="_blank" href="https://eips.ethereum.org/EIPS/eip-3668">CCIP-Read<
});

let record = new Record();
//calls.map((call, i) => record.parseCall(call, answers[i]));
record.parseCalls(calls, answers);
let row = create_log({title: 'Record'});
add_tag(row, create_tag('Count', `${record.size}/${calls.length}`));
Expand Down

0 comments on commit a1f4c3e

Please sign in to comment.