Ah, you’ll need to add the credits canister as a dependency of the serve canister in your dfx.json, like this:
"serve": {
"main": "src/serve/main.mo",
"type": "motoko",
"dependencies": [
"credits"
]
},
Then the above steps should work, so…
First run only:
dfx deploy
Subsequent runs for single canister changes:
dfx build serve && dfx canister install serve -m upgrade && dfx canister call serve myFunc