-
Notifications
You must be signed in to change notification settings - Fork 14
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
Upgrade to 0.30 SDK #327
Upgrade to 0.30 SDK #327
Conversation
Codecov Report
@@ Coverage Diff @@
## master #327 +/- ##
==========================================
- Coverage 67.44% 66.23% -1.21%
==========================================
Files 56 61 +5
Lines 2559 2654 +95
==========================================
+ Hits 1726 1758 +32
- Misses 686 749 +63
Partials 147 147
Continue to review full report at Codecov.
|
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.
utACK. Going to test locally before merging.
Nice job @jhernandezb!
@@ -33,7 +34,7 @@ func TestInvalidStoryIdBackMsg(t *testing.T) { | |||
msg := NewBackStoryMsg(invalidStoryID, validStake, validArgument, validCreator, validPeriod) | |||
err := msg.ValidateBasic() | |||
|
|||
assert.Equal(t, sdk.CodeType(702), err.Code(), err.Error()) | |||
assert.Equal(t, story.CodeInvalidStoryID, err.Code(), err.Error()) |
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.
Much cleaner than the old way. Thank you.
keyBacking: sdk.NewKVStoreKey("backings"), | ||
keyBackingList: sdk.NewKVStoreKey("backingList"), | ||
keyChallenge: sdk.NewKVStoreKey("challenges"), | ||
keyStory: sdk.NewKVStoreKey(story.StoreKey), |
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.
Excellent. Stringly types be gone.
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func Test_NewUserEmptyPublicKey(t *testing.T) { |
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.
Thank you.
This PR includes
Updates to dependencies
Breaking/notable changes in cosmos
x/state
renamed tox/staking
see PRsdk.CodespaceType
is now string (usually the name of the module is used) see PRStdSignature
no longer serializes AccountNumber and SequenceNumber see PRauth.Account
: AccountNumber and SequenceNumber are nowuint64
MountStoresIAVL
toMountStores
see PRgaid.toml
but now they introducedSetMinGasPrices
which is not included in v0.30 so left a TODO comment to update in future versions if needed/required see PRserver.DefaultAppInit
is removed see PRpriv_validator_key.json
andpriv_validator.json.bak
both added to gitignore