Update txHelper.ts

pull/5623/head
FT 3 weeks ago committed by Aniket
parent 52c4470b1b
commit 54093287ae
  1. 2
      libs/remix-lib/src/execution/txHelper.ts

@ -47,7 +47,7 @@ export function sortAbiFunction (contractabi) {
// Check if function is constant (introduced with Solidity 0.6.0)
const isConstant = ({ stateMutability }) => stateMutability === 'view' || stateMutability === 'pure'
// Sorts the list of ABI entries. Constant functions will appear first,
// followed by non-constant functions. Within those t wo groupings, functions
// followed by non-constant functions. Within those two groupings, functions
// will be sorted by their names.
return contractabi.sort(function (a, b) {
if (isConstant(a) && !isConstant(b)) {

Loading…
Cancel
Save