Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
gluk64 committed Feb 11, 2020
1 parent a1411f5 commit f00c051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/test/bytes_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function deployBytesTestContract() {
}
}

async function getRevertReason(f) {
async function getCallRevertReason(f) {
let revertReason = null
try {
let r = await f()
Expand Down Expand Up @@ -54,7 +54,7 @@ describe("Bytes unit test", function () {
});

it("should fail to read bytes beyond range", async () => {
let revertReason = await getRevertReason( () => bytesTestContract.read("0x0102030405060708", 8, 2, {}) )
let revertReason = await getCallRevertReason( () => bytesTestContract.read("0x0102030405060708", 8, 2, {}) )
expect(revertReason).equal("bse11")
});

Expand Down

0 comments on commit f00c051

Please sign in to comment.