Fix guides for 5.0 (#4654)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
(cherry picked from commit e12511b53e)
This commit is contained in:
committed by
Francisco Giordano
parent
228013d232
commit
bd25a0a26f
@ -88,7 +88,7 @@ contract('ERC4626', function (accounts) {
|
||||
const sharesForDeposit = await vault.previewDeposit(value, { from: holder });
|
||||
const sharesForReenter = await vault.previewDeposit(reenterValue, { from: holder });
|
||||
|
||||
// Do deposit normally, triggering the _beforeTokenTransfer hook
|
||||
// Deposit normally, reentering before the internal `_update`
|
||||
const receipt = await vault.deposit(value, holder, { from: holder });
|
||||
|
||||
// Main deposit event
|
||||
@ -170,7 +170,7 @@ contract('ERC4626', function (accounts) {
|
||||
// Price before
|
||||
const sharesBefore = await vault.previewDeposit(value);
|
||||
|
||||
// Deposit, triggering the _beforeTokenTransfer hook
|
||||
// Deposit, reentering before the internal `_update`
|
||||
const receipt = await vault.deposit(value, holder, { from: holder });
|
||||
|
||||
// Price is as previewed
|
||||
|
||||
Reference in New Issue
Block a user