[Truffle] Update for new API.