Nep5Token extends SmartContract { public int getDecimals() throws IOException, UnexpectedReturnTypeException { if (this.decimals == null) { this.decimals = callFuncReturningInt(NEP5_DECIMALS).intValue(); } return this.decimals; } Nep5Token(ScriptHash scriptHash, Neow3j neow); String getName(); String getSymbol(); BigInteger getTotalSupply(); int getDecimals(); BigInteger getBalanceOf(ScriptHash scriptHash); BigInteger getBalanceOf(Wallet wallet); TransactionBuilder transfer(Wallet wallet, ScriptHash to, BigDecimal amount); TransactionBuilder transferFromSpecificAccounts(Wallet wallet, ScriptHash to,
            BigDecimal amount, ScriptHash... from); TransactionBuilder transferFromDefaultAccount(Wallet wallet, ScriptHash to,
            BigDecimal amount);  }
@Test public void testGetDecimals() throws Exception { setUpWireMockForInvokeFunction("decimals", "invokefunction_decimals_gas.json"); assertThat(gasToken.getDecimals(), is(8)); }