-
Notifications
You must be signed in to change notification settings - Fork 21
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 contracts to v0.3.0 with better tests #45
Conversation
@@ -116,6 +127,6 @@ | |||
|
|||
// EndBlock executed after every block. It returns no validator updates. | |||
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { | |||
EndBlocker(ctx, am.k) | |||
EndBlocker(ctx, am.k, am.asyncTaskRspHandler) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
Are you really using alpha.1 contracts, not beta.2? It would be good to update the PR name. It would also be good to have a download script there that also writes |
Update to use final 0.3.0 contracts
resp, err := p.chain.SendMsgs(&wasmtypes.MsgExecuteContract{ | ||
Sender: p.chain.SenderAccount.GetAddress().String(), | ||
Contract: contract.String(), | ||
Msg: []byte(payload), | ||
Funds: funds, | ||
}) | ||
require.Error(p.t, err, "Response: %v", resp) | ||
// workaround sequence issue until wasmd testchain code is updated | ||
p.chain.NextBlock() | ||
require.NoError(p.t, p.chain.SenderAccount.SetSequence(p.chain.SenderAccount.GetSequence()+1)) |
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.
Ah, very cool
assert.Equal(t, 50_000_000, providerCli.QueryVaultFreeBalance()) | ||
|
||
// provider chain | ||
// ============== |
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.
👍
externalStaking sdk.AccAddress | ||
} | ||
|
||
func (p *TestProviderClient) BootstrapContracts(connId, portID string) ProviderContracts { |
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.
very nice 👍
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.
LGTM 👍
Upgrade contracts to v0.3.0
Full IBC enabled end to end test of stake, unstake