Skip to content

Commit

Permalink
readded nft module to charging modules, refactored sequencing loop
Browse files Browse the repository at this point in the history
  • Loading branch information
avendauz committed Aug 14, 2021
1 parent b0e921f commit 7bf88e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/ante/NewSetUpContextDecorator.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func isOnWhiteList (msgModule string, sender string, whiteList string) bool {
}

func isAChargingModule (msgModule string) bool {
return msgModule == "crud" || msgModule == "oracle"
return msgModule == "crud" || msgModule == "oracle" || msgModule == "nft"
}


2 changes: 1 addition & 1 deletion test/integration/specs/nft/store-nft.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("Store and retriving a NFT", function () {
let swarm: Swarm
beforeEach(() => {

return getAPIAndSwarm(mattnetConfig)
return getAPIAndSwarm(mattnetConfig, true)
.then(({bz: newBz, swarm: newSwarm}) => {
bz = newBz
swarm = newSwarm
Expand Down
6 changes: 4 additions & 2 deletions x/curium/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,16 @@ func DoBroadcast(resp chan *MsgBroadcasterResponse, keyringDir string, cdc *code

if accntSeqString.MatchString(broadcastResult.Log) {
returnError(errors.New("Sequencing error, retrying broadcast"))
newAccntState, err := resetAccountState(accnt, state)
//newAccntState, err := resetAccountState(accnt, state)
state.reset = true
state.requested = false
if err != nil {
returnError(err)
return
}

go func () {
DoBroadcast(resp, keyringDir, cdc, curiumKeeper, accKeeper, ctx, msgs, from, newAccntState)
DoBroadcast(resp, keyringDir, cdc, curiumKeeper, accKeeper, ctx, msgs, from, state)
}()
return
}
Expand Down

0 comments on commit 7bf88e1

Please sign in to comment.