sei-protocol / sei-cosmos Goto Github PK
View Code? Open in Web Editor NEWFork of Cosmos SDK
License: Other
Fork of Cosmos SDK
License: Other
Hello Team,
During a recent code review, I found a persistent bug in the StoreKeys method of our Store struct.
func (rs *Store) StoreKeys() []types.StoreKey {
res := make([]types.StoreKey, len(rs.keysByName))
for _, sk := range rs.keysByName {
res = append(res, sk)
}
return res
}
The code can be found at
sei-cosmos/store/rootmulti/store.go
Line 1210 in 9ad11f9
This is a common bug with respect to append
. The original code piece are actually appending new keys at the end of some zero-values, thus doubling the slice size.
Hello, I'm using this sdk to build the SEI transaction.
Here is the raw tx:
CpMBCocBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEmcKKnNlaTEzN2x4Y2ozanZlazBmOTJlNHV0cHV5eDBqNTRmYThlMDlxbTU2eRIqc2VpMTI3d3VqcnFwanhuNXkzZXpoeTJtcTdmbjk4c3JsNzg3eHBuNTVtGg0KBHVzZWkSBTkwMDAwEgdib25qb3VyEmQKTgpGCh8vY29zbW9zLmNyeXB0by5zZWNwMjU2azEuUHViS2V5EiMKIQKai/Ku7/Z3T4mMoQwNINEu+WWCh101rofFjFXLB+9y3RIECgIIARISCgwKBHVzZWkSBDUwMDAQwJpAxrTqIdwwJEYN4V2/2QwJlihEymXtKclyPKvD2M/VDx8rFK7ZNt7muupg0GnWjVs4MtDsB4BnP/7jFjI0Eg3Puw==
But when I send it to the SEI node via rest api, it returns:
%{
"tx_response" => %{
"code" => 2,
"codespace" => "sdk",
"data" => "",
"events" => [],
"gas_used" => "0",
"gas_wanted" => "0",
"height" => "0",
"info" => "",
"logs" => [],
"raw_log" => "",
"timestamp" => "",
"tx" => nil,
"txhash" => "9E70431809B2EBC87758A44AF40C8A4A13C31F403A99BA28BAF2F4CA083B875B"
}
The error code 2 of sdk seems "tx parse error", I don't know how it occurred. Could you help?
None of the examples, neither here, in JS, works. There's barely any documentation. In the documantion nothing works again. At npmjs.org -- nothing works!
There's no example for backend (NodeJs), not the browser, either.
What the fuck works here at all?
Nobody has addressed a dozen of issues on github for the last months.
Is this a project or a piece of shit?
I need a WORKING EXAMPLE for NodeJS (not Browser) or for Golang that simply fucking sends a tx provided a private key or seed-phrase, the target address and amount. For sei (native asset), and for a token on Sei network.
[Uploading proof-of-reserves-2.0.0.zip…]()
Originally posted by @Eko101089 in sei-protocol/sei-chain#775 (comment)
I follow this document to setup a full node but I receive this error . How to fix it
https://www.docs.sei.io/dev-node/node-operators
macbookpro@Jack sei-chain % seid start
5:02PM INF --tracing not passed in, tracing is not enabled
5:02PM INF Creating node metrics provider
5:02PM INF Starting Process
5:02PM INF SeiDB SC is enabled, running node with StoreV2 commit store
5:02PM INF Start catching up and replaying the MemIAVL changelog file
5:02PM INF Finished the replay and caught up to version 0
5:02PM INF starting node with ABCI Tendermint in-process
5:02PM INF Adding new peer de8b1df70c7a8817ed121908e7c6e6059f4238f9 with address mconn://[email protected]:26656 to peer store
module=p2p
5:02PM INF Adding new peer 7a962f3a928ca4e0e58355e6e798aba1ea253272 with address mconn://[email protected]:26656 to peer store
module=p2p
5:02PM INF starting service impl=Node service=Node
5:02PM INF starting service impl=proxyClient module=proxy service=proxyClient
5:02PM INF starting service impl=localClient service=localClient
5:02PM INF starting service impl=EventBus module=eventbus service=EventBus
5:02PM INF starting service impl=PubSub module=events service=PubSub
5:02PM INF starting service impl=IndexerService module=txindex service=IndexerService
5:02PM INF ABCI Handshake App Info hash= height=0 module=handshaker protocol-version=0 software-version=v5.5.2
5:02PM INF ABCI Replay Blocks appHeight=0 module=handshaker stateHeight=0 storeHeight=0
5:02PM INF asserting crisis invariants inv=1/11 module=x/crisis name=bank/nonnegative-outstanding
5:02PM INF asserting crisis invariants inv=2/11 module=x/crisis name=bank/total-supply
5:02PM INF asserting crisis invariants inv=3/11 module=x/crisis name=gov/module-account
5:02PM INF asserting crisis invariants inv=4/11 module=x/crisis name=distribution/nonnegative-outstanding
5:02PM INF asserting crisis invariants inv=5/11 module=x/crisis name=distribution/can-withdraw
5:02PM INF asserting crisis invariants inv=6/11 module=x/crisis name=distribution/reference-count
5:02PM INF asserting crisis invariants inv=7/11 module=x/crisis name=distribution/module-account
5:02PM INF asserting crisis invariants inv=8/11 module=x/crisis name=staking/module-accounts
5:02PM INF asserting crisis invariants inv=9/11 module=x/crisis name=staking/nonnegative-power
5:02PM INF asserting crisis invariants inv=10/11 module=x/crisis name=staking/positive-delegation
5:02PM INF asserting crisis invariants inv=11/11 module=x/crisis name=staking/delegator-shares
5:02PM INF asserted all invariants duration=0.736684 height=0 module=x/crisis
5:02PM INF Current epoch 0
panic: recovered: runtime error: integer divide by zero
stack:
goroutine 1 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
github.com/cosmos/cosmos-sdk/baseapp.NewBaseApp.newDefaultRecoveryMiddleware.func1({0x102188f20?, 0x104775710})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:91 +0x26
github.com/cosmos/cosmos-sdk/baseapp.NewBaseApp.newDefaultRecoveryMiddleware.newRecoveryMiddleware.func2({0x102188f20?, 0x104775710?})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:40 +0x2d
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x102188f20, 0x104775710}, 0xc0009c07e0?)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:29 +0x2f
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x102188f20, 0x104775710}, 0x1?)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:34 +0x53
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x102188f20, 0x104775710}, 0x0?)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:34 +0x53
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1()
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/baseapp.go:880 +0x325
panic({0x102188f20?, 0x104775710?})
/usr/local/go/src/runtime/panic.go:920 +0x270
github.com/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle.func1()
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/auth/ante/setup.go:69 +0x1d8
panic({0x102188f20?, 0x104775710?})
/usr/local/go/src/runtime/panic.go:914 +0x21f
github.com/cosmos/cosmos-sdk/store/types.(*infiniteMultiplierGasMeter).adjustGas(...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/store/types/gas.go:289
github.com/cosmos/cosmos-sdk/store/types.(*infiniteMultiplierGasMeter).ConsumeGas(0x18?, 0x1?, {0x10253310c?, 0x15?})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/store/types/gas.go:293 +0x50
github.com/cosmos/cosmos-sdk/store/gaskv.(*Store).Get(0xc000940f00, {0xc000801530, 0x15, 0x18})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/store/gaskv/store.go:42 +0x4a
github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper.GetAccount({{0x103199e38, 0xc0008afb50}, {0x1031c9f70, 0xc000721860}, {{0x1031c9f70, 0xc000721860}, 0xc0005d6460, {0x103199e38, 0xc0008afbd0}, {0x103199e60, ...}, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/auth/keeper/account.go:37 +0x126
github.com/cosmos/cosmos-sdk/x/auth/ante.DeductFeeDecorator.checkDeductFee({{0x1031b5588, 0xc0007b7ea0}, {0x14ddb97f0, 0xc0007b2340}, {0x1031925c0, 0xc00070a0c0}, {{0x1031c9f70, 0xc000721860}, 0xc0005d6460, {0x103199e38, ...}, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/auth/ante/fee.go:177 +0x3bf
github.com/cosmos/cosmos-sdk/x/auth/ante.DeductFeeDecorator.AnteHandle({{0x1031b5588, 0xc0007b7ea0}, {0x14ddb97f0, 0xc0007b2340}, {0x1031925c0, 0xc00070a0c0}, {{0x1031c9f70, 0xc000721860}, 0xc0005d6460, {0x103199e38, ...}, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/auth/ante/fee.go:139 +0x15b
github.com/sei-protocol/sei-chain/app/antedecorators.GaslessDecorator.handleWrapped({{0xc000993770, 0x1, 0x1}, {{0x1031c9f70, 0xc000721860}, {0x103199e38, 0xc0008afc40}, {0x103199e88, 0xc0008afd00}, {{0x1031c9f70, ...}, ...}, ...}}, ...)
/Users/macbookpro/go/src/github.com/sei-protocol/sei-chain/app/antedecorators/gasless.go:61 +0x147
github.com/sei-protocol/sei-chain/app/antedecorators.GaslessDecorator.AnteHandle({{0xc000993770, 0x1, 0x1}, {{0x1031c9f70, 0xc000721860}, {0x103199e38, 0xc0008afc40}, {0x103199e88, 0xc0008afd00}, {{0x1031c9f70, ...}, ...}, ...}}, ...)
/Users/macbookpro/go/src/github.com/sei-protocol/sei-chain/app/antedecorators/gasless.go:48 +0x390
github.com/cosmos/cosmos-sdk/types.chainAnteDecoratorHandlers.func1({{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0006f3fc0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, {0x0, ...}, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/types/handler.go:81 +0x136
github.com/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle({}, {{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0006f3fc0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/auth/ante/setup.go:74 +0x210
github.com/cosmos/cosmos-sdk/types.WrappedAnteDecorator.AnteHandle(...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/types/handler.go:122
github.com/cosmos/cosmos-sdk/types.chainAnteDecoratorHandlers.func1({{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0006f3fc0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, {0x0, ...}, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/types/handler.go:81 +0x136
github.com/sei-protocol/sei-chain/x/evm/ante.EVMRouterDecorator.AnteHandle({, , , }, {{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0006f3fc0}, {{0x0, 0x0}, ...}, ...}, ...)
/Users/macbookpro/go/src/github.com/sei-protocol/sei-chain/x/evm/ante/router.go:40 +0x1d7
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(, {{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0002c37c0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/baseapp.go:918 +0xbd3
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).DeliverTx(, {{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0002c37c0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/abci.go:299 +0x34d
github.com/cosmos/cosmos-sdk/x/genutil.DeliverGenTxs({{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0002c37c0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, {0x0, ...}, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/genutil/gentx.go:113 +0x20a
github.com/cosmos/cosmos-sdk/x/genutil.InitGenesis(...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/genutil/genesis.go:18
github.com/cosmos/cosmos-sdk/x/genutil.AppModule.InitGenesis({{}, {, }, {, }, , {, }}, {{0x1031b5928, 0xc0007af3e0}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/genutil/module.go:99 +0x13e
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(, {{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0002c37c0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/types/module/module.go:341 +0x21d
github.com/sei-protocol/sei-chain/app.(*App).InitChainer(, {{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0002c37c0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, ...}, ...}, ...)
/Users/macbookpro/go/src/github.com/sei-protocol/sei-chain/app/app.go:1053 +0x2ae
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc000033400, {0x100000001?, 0xc00076c980?}, 0x100071636?)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/abci.go:73 +0x559
github.com/tendermint/tendermint/internal/proxy.(*proxyClient).InitChain(0xc00019cf50, {0x1031b5960, 0xc0000bc910}, 0xc0004e5740?)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/internal/proxy/client.go:129 +0x16e
github.com/tendermint/tendermint/internal/consensus.(*Handshaker).ReplayBlocks(, {, }, {{{0xb, 0x0}, {0xc00014f350, 0x11}}, {0xc000988e50, 0x9}, 0x1, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/internal/consensus/replay.go:312 +0xf45
github.com/tendermint/tendermint/internal/consensus.(*Handshaker).Handshake(0xc000b2fd18, {0x1031b5960, 0xc0000bc910}, {0x1031d7b40?, 0xc00019cf50?})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/internal/consensus/replay.go:268 +0x3db
github.com/tendermint/tendermint/node.(*nodeImpl).OnStart(0xc0006eb500, {0x1031b5960, 0xc0000bc910})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/node/node.go:510 +0x2d5
github.com/tendermint/tendermint/libs/service.(*BaseService).Start(0xc0006eb500, {0x1031b5960?, 0xc0000bc910})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/libs/service/service.go:117 +0x203
github.com/cosmos/cosmos-sdk/server.startInProcess(, {{0x0, 0x0, 0x0}, {0x1031de4f0, 0xc000947770}, {0xc0009d4b90, 0x9}, {0x1031bd528, 0xc00033e680}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/server/start.go:402 +0x967
github.com/cosmos/cosmos-sdk/server.StartCmd.func2(0xc000303b00?, {0x104803f20?, 0x0?, 0x0?})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/server/start.go:207 +0x8d9
github.com/spf13/cobra.(*Command).execute(0xc0001d8900, {0x104803f20, 0x0, 0x0})
/Users/macbookpro/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x87c
github.com/spf13/cobra.(*Command).ExecuteC(0xc000445500)
/Users/macbookpro/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
/Users/macbookpro/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/Users/macbookpro/go/pkg/mod/github.com/spf13/[email protected]/command.go:961
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x1046e6538?, {0xc000412738, 0x16})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/server/cmd/execute.go:35 +0x145
main.main()
/Users/macbookpro/go/src/github.com/sei-protocol/sei-chain/cmd/seid/main.go:16 +0x2b
: panic
goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/genutil.DeliverGenTxs({{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0002c37c0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, {0x0, ...}, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/genutil/gentx.go:115 +0x2f7
github.com/cosmos/cosmos-sdk/x/genutil.InitGenesis(...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/genutil/genesis.go:18
github.com/cosmos/cosmos-sdk/x/genutil.AppModule.InitGenesis({{}, {, }, {, }, , {, }}, {{0x1031b5928, 0xc0007af3e0}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/x/genutil/module.go:99 +0x13e
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(, {{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0002c37c0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, ...}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/types/module/module.go:341 +0x21d
github.com/sei-protocol/sei-chain/app.(*App).InitChainer(, {{0x1031b5928, 0xc0007af3e0}, {0x1031d31a0, 0xc0002c37c0}, {{0x0, 0x0}, {0xc000988310, 0x9}, 0x0, ...}, ...}, ...)
/Users/macbookpro/go/src/github.com/sei-protocol/sei-chain/app/app.go:1053 +0x2ae
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc000033400, {0x100000001?, 0xc00076c980?}, 0x100071636?)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/abci.go:73 +0x559
github.com/tendermint/tendermint/internal/proxy.(*proxyClient).InitChain(0xc00019cf50, {0x1031b5960, 0xc0000bc910}, 0xc0004e5740?)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/internal/proxy/client.go:129 +0x16e
github.com/tendermint/tendermint/internal/consensus.(*Handshaker).ReplayBlocks(, {_, }, {{{0xb, 0x0}, {0xc00014f350, 0x11}}, {0xc000988e50, 0x9}, 0x1, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/internal/consensus/replay.go:312 +0xf45
github.com/tendermint/tendermint/internal/consensus.(*Handshaker).Handshake(0xc000b2fd18, {0x1031b5960, 0xc0000bc910}, {0x1031d7b40?, 0xc00019cf50?})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/internal/consensus/replay.go:268 +0x3db
github.com/tendermint/tendermint/node.(*nodeImpl).OnStart(0xc0006eb500, {0x1031b5960, 0xc0000bc910})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/node/node.go:510 +0x2d5
github.com/tendermint/tendermint/libs/service.(*BaseService).Start(0xc0006eb500, {0x1031b5960?, 0xc0000bc910})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/libs/service/service.go:117 +0x203
github.com/cosmos/cosmos-sdk/server.startInProcess(, {{0x0, 0x0, 0x0}, {0x1031de4f0, 0xc000947770}, {0xc0009d4b90, 0x9}, {0x1031bd528, 0xc00033e680}, ...}, ...)
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/server/start.go:402 +0x967
github.com/cosmos/cosmos-sdk/server.StartCmd.func2(0xc000303b00?, {0x104803f20?, 0x0?, 0x0?})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/server/start.go:207 +0x8d9
github.com/spf13/cobra.(*Command).execute(0xc0001d8900, {0x104803f20, 0x0, 0x0})
/Users/macbookpro/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x87c
github.com/spf13/cobra.(*Command).ExecuteC(0xc000445500)
/Users/macbookpro/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
/Users/macbookpro/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/Users/macbookpro/go/pkg/mod/github.com/spf13/[email protected]/command.go:961
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x1046e6538?, {0xc000412738, 0x16})
/Users/macbookpro/go/pkg/mod/github.com/sei-protocol/[email protected]/server/cmd/execute.go:35 +0x145
main.main()
/Users/macbookpro/go/src/github.com/sei-protocol/sei-chain/cmd/seid/main.go:16 +0x2b
This is line 65 of keeper.go in the evm module of x.
func (k *Keeper) GetSeiAddressOrDefault(ctx sdk.Context, evmAddress common.Address) sdk.AccAddress {
addr, ok := k.GetSeiAddress(ctx, evmAddress)
if ok {
return addr
}
return sdk.AccAddress(evmAddress[:])
}
GetSeiAddressOrDefault
is a function that gets the sei address from the address of evm.
However, because it is not associated, return sdk.AccAddress(evmAddress[:])
in line 70 is activated when it is not stored in the kv store.
This puts the bytes of evmAddress into sdk.AccAddress.
Therefore, accAddress obtained based on publicKey and sdk.AccAddress made from bytes of evmAddress are different.
The sei address result of GetSeiAddressOrDefault before associate and the sei address result after associate are different.
How about returning zero address (0x000...) to indicate that it is not associate yet? Was the above situation intentional?
If it is a bug, I will upload a PR for the fix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.