Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RED-156: deprecate eth_compileSerpent, eth_compileLLL and eth_compileSolidity #49

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2691,8 +2691,11 @@ export const methods = {
.digest('hex')
logEventEmitter.emit('fn_start', ticket, api_name, performance.now())
/* prettier-ignore */ if (firstLineLogs) { console.log('Running compileSolidity', args) }
const result = 'test'
callback(null, result)
const error: JSONRPCError = {
code: -32601,
message: 'The method eth_compileSolidity does not exist/is not available',
}
callback(error)
Comment on lines +2694 to +2698

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOLID

countSuccessResponse(api_name, 'success', 'TBD')
logEventEmitter.emit('fn_end', ticket, { success: true }, performance.now())
},
Expand All @@ -2705,8 +2708,11 @@ export const methods = {
.digest('hex')
logEventEmitter.emit('fn_start', ticket, api_name, performance.now())

const result = 'test'
callback(null, result)
const error: JSONRPCError = {
code: -32601,
message: 'The method eth_compileLLL does not exist/is not available',
}
callback(error)
countSuccessResponse(api_name, 'success', 'TBD')
logEventEmitter.emit('fn_end', ticket, { success: true }, performance.now())
},
Expand All @@ -2719,8 +2725,11 @@ export const methods = {
.digest('hex')
logEventEmitter.emit('fn_start', ticket, api_name, performance.now())

const result = 'test'
callback(null, result)
const error: JSONRPCError = {
code: -32601,
message: 'The method eth_compileSerpent does not exist/is not available',
}
callback(error)
countSuccessResponse(api_name, 'success', 'TBD')
logEventEmitter.emit('fn_end', ticket, { success: true }, performance.now())
},
Expand Down