You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While generate the messages.proto , the message name of the return value for smart contract's constant function is incorrect.
For example ,there is a smart contract contain a constant getName function which has no input parameter and return a string.
After convert the .sol file to the .proto files ,it will generate an unexpected GetNameReq message instead of generating GetNameResp message in the messages.proto.
# function in smart contract
function getName() public constant returns (string) {
return name;
}
# After execute sol2proto , the expected message name in messages.proto
message GetNameResp {
string arg = 1;
}
# After execute sol2proto , the actual message name in messages.proto currently
message GetNameReq {
string arg = 1;
}
After tracing the code , it seems to be a typo at line 59 in the grpc/method.go
I suppose the method.RequestName() should be replaced with method.ResponseName().
While generate the messages.proto , the message name of the return value for smart contract's constant function is incorrect.
For example ,there is a smart contract contain a constant
getName
function which has no input parameter and return a string.After convert the .sol file to the .proto files ,it will generate an unexpected
GetNameReq
message instead of generatingGetNameResp
message in the messages.proto.After tracing the code , it seems to be a typo at line 59 in the grpc/method.go
I suppose the method.RequestName() should be replaced with method.ResponseName().
The corresponding PR is here #17
The text was updated successfully, but these errors were encountered: