Skip to content

Commit

Permalink
Update scripts/invoke_view_function.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas Rodrigues Lordello <nlordell@gmail.com>
  • Loading branch information
bh2smith and nlordell authored May 28, 2020
1 parent 5ac82a1 commit c747b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/invoke_view_function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = async (callback: Truffle.ScriptCallback) => {
}
const [functionName, ...arg] = args;
const exchange = await getBatchExchange(artifacts);
const info = await exchange.contract.methods[functionName].call(...arg);
const info = await (exchange as any)[functionName].call(...arg);
log.info(info);
callback();
} catch (error) {
Expand Down

0 comments on commit c747b04

Please sign in to comment.