Skip to content

Commit

Permalink
change proccess for aleo
Browse files Browse the repository at this point in the history
  • Loading branch information
Geapefurit committed Mar 4, 2024
1 parent 740ccaf commit c7b16ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/create_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (s *Server) CreateTransaction(ctx context.Context, in *sphinxproxy.CreateTr

tstate := sphinxproxy.TransactionState_TransactionStateWait
if coinType == sphinxplugin.CoinType_CoinTypealeo || coinType == sphinxplugin.CoinType_CoinTypetaleo {
tstate = sphinxproxy.TransactionState_TransactionStateRetrievePrivateInfo
tstate = sphinxproxy.TransactionState_TransactionStatePrepare
}
// store to db
if err := crud.CreateTransaction(ctx, &crud.CreateTransactionParam{
Expand Down
3 changes: 0 additions & 3 deletions api/get_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ func (s *Server) GetBalance(ctx context.Context, in *sphinxproxy.GetBalanceReque
withPreBalance := false

switch coinType {
case sphinxplugin.CoinType_CoinTypealeo, sphinxplugin.CoinType_CoinTypetaleo:
name = "aleo"
withPreBalance = true
case sphinxplugin.CoinType_CoinTypeironfish, sphinxplugin.CoinType_CoinTypetironfish:
name = "ironfish"
withPreBalance = true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/NpoolPlatform/chain-middleware v0.0.0-20231020114413-49166aeb1ec8
github.com/NpoolPlatform/go-service-framework v0.0.0-20230930023319-e48074d9472e
github.com/NpoolPlatform/libent-cruder v0.0.0-20231008051607-f64457cf6ab6
github.com/NpoolPlatform/message v0.0.0-20231217084237-bcb4670bddb4
github.com/NpoolPlatform/message v0.0.0-20240227074638-8640fae10d40
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20231217084706-666de84dc283
github.com/google/uuid v1.3.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ github.com/NpoolPlatform/go-service-framework v0.0.0-20230930023319-e48074d9472e
github.com/NpoolPlatform/go-service-framework v0.0.0-20230930023319-e48074d9472e/go.mod h1:Kh7DMkWnYOMHxEKq7QfJqbxm1HaUPkhTNN74lfHQxyE=
github.com/NpoolPlatform/libent-cruder v0.0.0-20231008051607-f64457cf6ab6 h1:zbM3Zq0qObWEiw+wYJihNFOsBfXey8mBgAhT7HzGB8Y=
github.com/NpoolPlatform/libent-cruder v0.0.0-20231008051607-f64457cf6ab6/go.mod h1:EXCihQpRNNyWaPu1IphiZFLTyyUK/CJMZdW4My7y48Q=
github.com/NpoolPlatform/message v0.0.0-20231217084237-bcb4670bddb4 h1:c/tSUSLyXD2f5sKhNOVeSmcArsJc6zfavDHbTvF4jhY=
github.com/NpoolPlatform/message v0.0.0-20231217084237-bcb4670bddb4/go.mod h1:PxJpF0vSSOke+NJskbRBRQ2fK2K3SRe8zaEja+GxSHk=
github.com/NpoolPlatform/message v0.0.0-20240227074638-8640fae10d40 h1:DQH2ZOC2We8oo4WIdPeyuYPebz5Y8DcYVnmgMbxIWNo=
github.com/NpoolPlatform/message v0.0.0-20240227074638-8640fae10d40/go.mod h1:PxJpF0vSSOke+NJskbRBRQ2fK2K3SRe8zaEja+GxSHk=
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20231217084706-666de84dc283 h1:KpbY0dADY9PYiAW/r0fNWUUoqaqMuxpr+MFGa3Do5Mo=
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20231217084706-666de84dc283/go.mod h1:KdXPpd9yJwKNmaY9Z8pXDTstbzKdxrAWPmF2f9u72PU=
github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
Expand Down

0 comments on commit c7b16ef

Please sign in to comment.