Skip to content

VDB-1443 msg sender for jug file#229

Merged
elizabethengelman merged 7 commits intobreaking-changesfrom
vdb-1443-msg-sender-for-jug-file
Jul 22, 2020
Merged

VDB-1443 msg sender for jug file#229
elizabethengelman merged 7 commits intobreaking-changesfrom
vdb-1443-msg-sender-for-jug-file

Conversation

@elizabethengelman
Copy link
Copy Markdown
Contributor

No description provided.

@elizabethengelman elizabethengelman marked this pull request as draft July 16, 2020 21:51
@elizabethengelman elizabethengelman force-pushed the vdb-1443-msg-sender-for-jug-file branch from ffcbb30 to 9558e67 Compare July 16, 2020 22:11
@elizabethengelman elizabethengelman changed the base branch from staging to breaking-changes July 21, 2020 18:20
@elizabethengelman elizabethengelman force-pushed the vdb-1443-msg-sender-for-jug-file branch from 9558e67 to fa9f811 Compare July 21, 2020 18:20
@elizabethengelman elizabethengelman marked this pull request as ready for review July 21, 2020 18:21
@elizabethengelman elizabethengelman requested review from paytonrules, rmulhol and yaoandrew and removed request for rmulhol July 21, 2020 18:21
)

BeforeEach(func() {
test_config.CleanTestDB(db)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 - although now I think I may need to add this to some of my tests.....

}

msgSender := shared.GetChecksumAddressString(log.Log.Topics[1].Hex())
msgSenderId, msgSenderErr := shared.GetOrCreateAddress(msgSender, db)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want msgSenderID - the linter will get it eventually. Not a blocker.

Expect(err).NotTo(HaveOccurred())

var ilkID int64
ilkErr := db.Get(&ilkID, `SELECT id FROM maker.ilks where ilk = $1`, test_data.JugFileIlkEventLog.Log.Topics[2].Hex())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not technically your code - but you could replace this with

ilkID, ilkIDErr := shared.GetOrCreateIlk(test_data.JugFileIlkEventLog.Log.Topics[2].Hex(), db)
Expect(ilkIDErr).NotTo(HaveOccurred())

@elizabethengelman elizabethengelman force-pushed the vdb-1443-msg-sender-for-jug-file branch 2 times, most recently from 752ff24 to 1ee5bee Compare July 22, 2020 20:15
@elizabethengelman elizabethengelman force-pushed the vdb-1443-msg-sender-for-jug-file branch from 1ee5bee to 23ffdb4 Compare July 22, 2020 21:29
@elizabethengelman elizabethengelman merged commit 9cfe583 into breaking-changes Jul 22, 2020
@elizabethengelman elizabethengelman deleted the vdb-1443-msg-sender-for-jug-file branch July 22, 2020 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants