# Sdk testing getting Invalid number of parameters

**URL:** <https://forum.openzeppelin.com/t/sdk-testing-getting-invalid-number-of-parameters/1570>\
**Category:** SDK\
**Tags:** erc20\
**Created:** [October 17, 2019, 10:28am UTC](https://forum.openzeppelin.com/t/sdk-testing-getting-invalid-number-of-parameters/1570 "2019-10-17T10:28:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![CIX](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@CIX](https://forum.openzeppelin.com/u/CIX)\
**Post date:** [October 17, 2019, 1:54pm UTC](https://forum.openzeppelin.com/t/sdk-testing-getting-invalid-number-of-parameters/1570/2 "2019-10-17T13:54:06Z")

</div>

I changed the sample.sol and use truffle compile and use normal truffle test with artifacts. Not sure if it is a hack or the correct way but it works…

`const token = artifacts.require('Test.sol');`

```
pragma solidity ^0.5.0;

import "../node_modules/@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/StandaloneERC20.sol";

contract Test is StandaloneERC20 {
  function greet() public pure returns (string memory) {
    return "A Test";
  }
}

```

Now I want to upgrade the function greet in a separate testUpgrade.js file but I have no idea where to start… any help?

---

_[View the full topic](https://forum.openzeppelin.com/t/sdk-testing-getting-invalid-number-of-parameters/1570)._
