Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niklabh committed Dec 14, 2022
1 parent 09a8626 commit 7fefbe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/page-contracts/src/Contracts/Call.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ function Call ({ className = '', contract, messageIndex, onCallResult, onChangeM
const dbValue = useDebounce(value);
const dbParams = useDebounce(params);

console.log(weight.isEmpty);
console.log(weight.weightV2.toHuman());

useEffect((): void => {
setEstimatedWeight(null);
setParams([]);
Expand Down Expand Up @@ -89,7 +92,7 @@ function Call ({ className = '', contract, messageIndex, onCallResult, onChangeM
.query[message.method](
accountId,
{
gasLimit: weight.isEmpty ? -1 : weight.isWeightV2 ? weight.weightV2 : weight.weight,
gasLimit: weight.isWeightV2 ? weight.weightV2 : weight.weight,
storageDepositLimit: null,
value: message.isPayable ? value : 0
}, ...params)
Expand Down

0 comments on commit 7fefbe7

Please sign in to comment.