diff --git a/examples/motoko_examples/http_counter/src/index.ts b/examples/motoko_examples/http_counter/src/index.ts index 5ed99bdcca..9a89fb1296 100644 --- a/examples/motoko_examples/http_counter/src/index.ts +++ b/examples/motoko_examples/http_counter/src/index.ts @@ -107,7 +107,10 @@ export default class extends Service { body: encode('Counter'), streaming_strategy: Some({ Callback: { - callback: [ic.id(), 'http_streaming'], + callback: new Callback( + ic.id(), + 'http_streaming' + ), token: { arbitrary_data: 'start' }