-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: add /vm.m_run
message handler
#281
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,12 @@ export interface VmAddPackage extends InfoType { | |
deposit: string; | ||
} | ||
|
||
export interface VmRun extends InfoType { | ||
caller: string; | ||
send: string; | ||
package?: Package; | ||
} | ||
|
||
export const encodeVmCall = (writer: protobuf.Writer, messageInfo: VmCall) => { | ||
if (messageInfo.caller !== '') { | ||
writer.uint32(10).string(messageInfo.caller); | ||
|
@@ -80,3 +86,16 @@ export const encodeVmAddPackage = (writer: protobuf.Writer, messageInfo: VmAddPa | |
} | ||
return writer; | ||
}; | ||
|
||
export const encodeVmRun = (writer: protobuf.Writer, messageInfo: VmAddPackage) => { | ||
if (messageInfo.caller !== '') { | ||
writer.uint32(10).string(messageInfo.caller); | ||
} | ||
if (messageInfo.send !== '') { | ||
writer.uint32(18).string(messageInfo.send); | ||
} | ||
if (messageInfo.package !== undefined) { | ||
encodePackage(writer.uint32(18).fork(), messageInfo.package).ldelim(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This simply seems to be the problem. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @luciorubeens seems like protobuf has certain buf size value for nth args. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
return writer; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be
messageInfo: VmRun
??