-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add Name to Events, Name to Subscription #71
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8fbe291
Add name to Events
c319cbe
Allow sol 0.6.8, go1.14 tweaks for json number parsing
2fd3496
Change logEntry tx index type to hex uint
c242e26
Add CustomName to Subscriptions
afeeae2
Fix json for event name
b5d272d
Add tests with event stream name in smartcontract gw
cf977ff
Sub auto-generated summary, accept name from end user
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,15 +78,15 @@ const testFromAddr = "0x83dBC8e329b38cBA0Fc4ed99b1Ce9c2a390ABdC1" | |
|
||
var goodDeployTxnJSON = "{" + | ||
" \"headers\":{\"type\": \"DeployContract\"}," + | ||
" \"solidity\":\"pragma solidity >=0.4.22 <0.6.0; contract t {constructor() public {}}\"," + | ||
" \"solidity\":\"pragma solidity >=0.4.22 <0.6.9; contract t {constructor() public {}}\"," + | ||
" \"from\":\"" + testFromAddr + "\"," + | ||
" \"nonce\":\"123\"," + | ||
" \"gas\":\"123\"" + | ||
"}" | ||
|
||
var goodHDWalletDeployTxnJSON = "{" + | ||
" \"headers\":{\"type\": \"DeployContract\"}," + | ||
" \"solidity\":\"pragma solidity >=0.4.22 <0.6.0; contract t {constructor() public {}}\"," + | ||
" \"solidity\":\"pragma solidity >=0.4.22 <0.6.9; contract t {constructor() public {}}\"," + | ||
" \"from\":\"hd-testinst-testwallet-1234\"," + | ||
" \"nonce\":\"123\"," + | ||
" \"gas\":\"123\"" + | ||
|
@@ -101,7 +101,7 @@ var goodSendTxnJSON = "{" + | |
|
||
var goodDeployTxnPrivateJSON = "{" + | ||
" \"headers\":{\"type\": \"DeployContract\"}," + | ||
" \"solidity\":\"pragma solidity >=0.4.22 <0.6.0; contract t {constructor() public {}}\"," + | ||
" \"solidity\":\"pragma solidity >=0.4.22 <0.6.9; contract t {constructor() public {}}\"," + | ||
" \"from\":\"" + testFromAddr + "\"," + | ||
" \"nonce\":\"123\"," + | ||
" \"gas\":\"123\"," + | ||
|
@@ -608,7 +608,7 @@ func TestOnSendTransactionMessageBadNonce(t *testing.T) { | |
testTxnContext.jsonMsg = "{" + | ||
" \"headers\":{\"type\": \"SendTransaction\"}," + | ||
" \"from\":\"0x83dBC8e329b38cBA0Fc4ed99b1Ce9c2a390ABdC1\"," + | ||
" \"nonce\":\"abc\"" + | ||
" \"nonce\":\"123.4\"" + | ||
"}" | ||
txnProcessor.OnMessage(testTxnContext) | ||
for len(testTxnContext.errorReplies) == 0 { | ||
|
@@ -630,7 +630,7 @@ func TestOnSendTransactionMessageBadMsg(t *testing.T) { | |
" \"headers\":{\"type\": \"SendTransaction\"}," + | ||
" \"from\":\"0x83dBC8e329b38cBA0Fc4ed99b1Ce9c2a390ABdC1\"," + | ||
" \"nonce\":\"123\"," + | ||
" \"value\":\"abc\"," + | ||
" \"value\":\"123.456\"," + | ||
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. Guessing this is a go version behavior change: using |
||
" \"method\":{\"name\":\"test\"}" + | ||
"}" | ||
txnProcessor.OnMessage(testTxnContext) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Guessing this is a go version behavior change: using
abc
for nonce throws an error in parsing the json in the test file: "json: invalid number literal, trying to unmarshal ""abc"" into Number" instead of throwing an error in txn processing logic