Skip to content

Commit 7e9835c

Browse files
committed
refactor(getQueryObject)!: remove deprecated decode method
BREAKING CHANGE: `decode` method of `getQueryObject` removed Use `decode` function instead.
1 parent 257db32 commit 7e9835c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/ae/oracle.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,7 @@ async function getQueryObject (oracleId, queryId) {
108108
decodedQuery: decode(q.query).toString(),
109109
decodedResponse: decode(q.response).toString(),
110110
respond: this.respondToQuery.bind(this, oracleId, queryId),
111-
pollForResponse: this.pollForQueryResponse.bind(this, oracleId, queryId),
112-
/**
113-
* @deprecated use plain decode instead
114-
* @param data
115-
* @returns {Buffer}
116-
*/
117-
decode: (data) => decode(data)
111+
pollForResponse: this.pollForQueryResponse.bind(this, oracleId, queryId)
118112
}
119113
}
120114

0 commit comments

Comments
 (0)