@@ -215,14 +215,14 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
215
215
}
216
216
} ) ;
217
217
218
- describe ( 'concerning ERC1271 compatibility' , function ( ) {
218
+ describe ( 'concerning ERC1654 compatibility' , function ( ) {
219
219
const data = "hello world" ;
220
- const ERC1271_VS = "0x1626ba7e" ;
220
+ const ERC1654_VS = "0x1626ba7e" ;
221
221
222
222
it ( 'should be able to validate a signature' , async function ( ) {
223
223
// prepare a signature from the signer and the cosigner
224
224
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
225
- const hashToSign = utils . getSha3ForERC1271 (
225
+ const hashToSign = utils . getSha3ForERC1654 (
226
226
wallet . address ,
227
227
dataHash
228
228
) ;
@@ -234,12 +234,12 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
234
234
// call contract
235
235
const result = await wallet . isValidSignature ( '0x' + dataHash . toString ( 'hex' ) , combined ) ;
236
236
// check result
237
- result . should . eql ( ERC1271_VS ) ;
237
+ result . should . eql ( ERC1654_VS ) ;
238
238
} ) ;
239
239
240
240
it ( 'should return 0 if provided an invalid signature' , async function ( ) {
241
241
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
242
- const hashToSign = utils . getSha3ForERC1271 (
242
+ const hashToSign = utils . getSha3ForERC1654 (
243
243
wallet . address ,
244
244
dataHash
245
245
) ;
@@ -257,7 +257,7 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
257
257
it ( 'should return 0 if provided an invalid signature length' , async function ( ) {
258
258
259
259
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
260
- const hashToSign = utils . getSha3ForERC1271 (
260
+ const hashToSign = utils . getSha3ForERC1654 (
261
261
wallet . address ,
262
262
dataHash
263
263
) ;
@@ -273,7 +273,7 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
273
273
274
274
it ( 'should return 0 if only given 1 signature' , async function ( ) {
275
275
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
276
- const hashToSign = utils . getSha3ForERC1271 (
276
+ const hashToSign = utils . getSha3ForERC1654 (
277
277
wallet . address ,
278
278
dataHash
279
279
) ;
@@ -287,7 +287,7 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
287
287
it ( 'should return 0 if given signature from a key that is not the cosigner' , async function ( ) {
288
288
289
289
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
290
- const hashToSign = utils . getSha3ForERC1271 (
290
+ const hashToSign = utils . getSha3ForERC1654 (
291
291
wallet . address ,
292
292
dataHash
293
293
) ;
@@ -304,7 +304,7 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
304
304
it ( 'should return 0 if given signature from a key that is not an authorized key' , async function ( ) {
305
305
306
306
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
307
- const hashToSign = utils . getSha3ForERC1271 (
307
+ const hashToSign = utils . getSha3ForERC1654 (
308
308
wallet . address ,
309
309
dataHash
310
310
) ;
@@ -3561,14 +3561,14 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
3561
3561
}
3562
3562
} ) ;
3563
3563
3564
- describe ( 'concerning ERC1271 compatibility' , function ( ) {
3564
+ describe ( 'concerning ERC1654 compatibility' , function ( ) {
3565
3565
const data = "hello worlds" ;
3566
- const ERC1271_VS = "0x1626ba7e" ;
3566
+ const ERC1654_VS = "0x1626ba7e" ;
3567
3567
3568
3568
it ( 'should be able to validate a signature' , async function ( ) {
3569
3569
// prepare a signature from the signer and the cosigner
3570
3570
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
3571
- const hashToSign = utils . getSha3ForERC1271 (
3571
+ const hashToSign = utils . getSha3ForERC1654 (
3572
3572
wallet . address ,
3573
3573
dataHash
3574
3574
) ;
@@ -3578,13 +3578,13 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
3578
3578
// call contract
3579
3579
const result = await wallet . isValidSignature ( '0x' + dataHash . toString ( 'hex' ) , combined ) ;
3580
3580
// check result
3581
- result . should . eql ( ERC1271_VS ) ;
3581
+ result . should . eql ( ERC1654_VS ) ;
3582
3582
} ) ;
3583
3583
3584
3584
it ( 'should be able to validate a signature with two signatures' , async function ( ) {
3585
3585
// prepare a signature from the signer and the cosigner
3586
3586
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
3587
- const hashToSign = utils . getSha3ForERC1271 (
3587
+ const hashToSign = utils . getSha3ForERC1654 (
3588
3588
wallet . address ,
3589
3589
dataHash
3590
3590
) ;
@@ -3596,12 +3596,12 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
3596
3596
// call contract
3597
3597
const result = await wallet . isValidSignature ( '0x' + dataHash . toString ( 'hex' ) , combined ) ;
3598
3598
// check result
3599
- result . should . eql ( ERC1271_VS ) ;
3599
+ result . should . eql ( ERC1654_VS ) ;
3600
3600
} ) ;
3601
3601
3602
3602
it ( 'should return 0 if provided an invalid signature' , async function ( ) {
3603
3603
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
3604
- const hashToSign = utils . getSha3ForERC1271 (
3604
+ const hashToSign = utils . getSha3ForERC1654 (
3605
3605
wallet . address ,
3606
3606
dataHash
3607
3607
) ;
@@ -3615,7 +3615,7 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
3615
3615
3616
3616
it ( 'should return 0 if provided an invalid signature length' , async function ( ) {
3617
3617
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
3618
- const hashToSign = utils . getSha3ForERC1271 (
3618
+ const hashToSign = utils . getSha3ForERC1654 (
3619
3619
wallet . address ,
3620
3620
dataHash
3621
3621
) ;
@@ -3630,7 +3630,7 @@ const testSuite = async function (wtype, accounts, _walletFactory, _cloneAddress
3630
3630
3631
3631
it ( 'should return 0 if given signature from a key that is not an authorized key' , async function ( ) {
3632
3632
const dataHash = abi . soliditySHA3 ( [ 'string' ] , [ data ] ) ;
3633
- const hashToSign = utils . getSha3ForERC1271 (
3633
+ const hashToSign = utils . getSha3ForERC1654 (
3634
3634
wallet . address ,
3635
3635
dataHash
3636
3636
) ;
@@ -4851,8 +4851,8 @@ contract('Wallet', async (accounts) => {
4851
4851
const ERC721_RECEIVED_DRAFT = "0xf0b9e5ba" ;
4852
4852
const ERC223_ID = "0xc0ee0b8a" ;
4853
4853
const ERC165_ID = "0x01ffc9a7"
4854
- const ERC1271_VS = "0x1626ba7e" ;
4855
- addrs = [ ERC721_RECEIVED_FINAL , ERC721_RECEIVED_DRAFT , ERC223_ID , ERC165_ID , ERC1271_VS ] ;
4854
+ const ERC1654_VS = "0x1626ba7e" ;
4855
+ addrs = [ ERC721_RECEIVED_FINAL , ERC721_RECEIVED_DRAFT , ERC223_ID , ERC165_ID , ERC1654_VS ] ;
4856
4856
} ) ;
4857
4857
4858
4858
it ( 'should return true for the interfaces it implements' , async function ( ) {
0 commit comments