For anyone else struggling, try to check whether your ABI json actually
includes the method you are trying to call. It could have been that
you copied the ABI for the wrong contract as Remix would by default
list the first contract in the default template rather than your newly
created contract.