File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
packages/sources/anchorage
test/integration/__snapshots__ Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @chainlink/anchorage-adapter ' : minor
3+ ---
4+
5+ Return number instead of string
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ export const inputParameters = new InputParameters(
2828export type BaseEndpointTypes = {
2929 Parameters : typeof inputParameters . definition
3030 Response : {
31- Result : string
31+ Result : number
3232 Data : {
33- result : string
33+ result : number
3434 assets : {
3535 asset : {
3636 assetType : string
Original file line number Diff line number Diff line change @@ -91,11 +91,11 @@ export class PackagesTransport extends SubscriptionTransport<BaseEndpointTypes>
9191
9292 return {
9393 data : {
94- result : result . toString ( ) ,
94+ result : result . toNumber ( ) ,
9595 assets,
9696 } ,
9797 statusCode : 200 ,
98- result : result . toString ( ) ,
98+ result : result . toNumber ( ) ,
9999 timestamps : {
100100 providerDataRequestedUnixMs,
101101 providerDataReceivedUnixMs : Date . now ( ) ,
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ exports[`execute packages endpoint should return success 1`] = `
2323 " quantity" : " 0.8" ,
2424 },
2525 ],
26- " result" : " 2.3" ,
26+ " result" : 2.3 ,
2727 },
28- " result" : " 2.3" ,
28+ " result" : 2.3 ,
2929 " statusCode" : 200 ,
3030 " timestamps" : {
3131 " providerDataReceivedUnixMs" : 978347471111 ,
You can’t perform that action at this time.
0 commit comments